mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 20:16:36 -04:00
Fix standing on top of map triggering noclip detection in ZS.
This commit is contained in:
parent
5231ae8a0d
commit
8d01393106
@ -155,8 +155,10 @@ namespace MCGalaxy.Maths {
|
||||
BlockDefinition def = lvl.GetBlockDef(block);
|
||||
if (def != null) {
|
||||
if (CollideType.IsSolid(def.CollideType)) return true;
|
||||
} else {
|
||||
if (block.BlockID == Block.Invalid || !Block.Walkthrough(Block.Convert(block.BlockID))) return true;
|
||||
} else if (block.BlockID == Block.Invalid) {
|
||||
if (y < lvl.Height) return true;
|
||||
} else if (!Block.Walkthrough(Block.Convert(block.BlockID))) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user