Fix standing on top of map triggering noclip detection in ZS.

This commit is contained in:
UnknownShadow200 2017-12-29 10:42:30 +11:00
parent 5231ae8a0d
commit 8d01393106

View File

@ -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;