mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Can click on bot even when selecting block behind.
This commit is contained in:
parent
f0b8690848
commit
b2ce0de82e
@ -86,10 +86,9 @@ namespace MCGalaxy.Core {
|
|||||||
byte entity, ushort x, ushort y, ushort z, TargetBlockFace face) {
|
byte entity, ushort x, ushort y, ushort z, TargetBlockFace face) {
|
||||||
if (action != MouseAction.Pressed) return;
|
if (action != MouseAction.Pressed) return;
|
||||||
|
|
||||||
bool validPos = p.level.IsValidPos(x, y, z);
|
if (entity != Entities.SelfID && ClickOnBot(p, entity)) return;
|
||||||
if (entity != Entities.SelfID && !validPos && ClickOnBot(p, entity)) return;
|
|
||||||
|
|
||||||
if (p.level.Config.Deletable || !validPos) return;
|
if (p.level.Config.Deletable || !p.level.IsValidPos(x, y, z)) return;
|
||||||
ExtBlock block = p.level.GetBlock(x, y, z);
|
ExtBlock block = p.level.GetBlock(x, y, z);
|
||||||
bool isMB = p.level.BlockProps[block.Index].IsMessageBlock;
|
bool isMB = p.level.BlockProps[block.Index].IsMessageBlock;
|
||||||
bool isPortal = p.level.BlockProps[block.Index].IsPortal;
|
bool isPortal = p.level.BlockProps[block.Index].IsPortal;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user