fix a missed y level check for security desk

This commit is contained in:
Thiakil authored and Dave Smith committed 2019-02-26 06:43:19 -07:00
1 parent aa6fba062e
commit 8d48274edb
1 file changed
+1 -1
@@ -230,7 +230,7 @@ public class ItemBlockBasic extends ItemBlock implements IEnergizedItem, ITierIt
if(type == BasicBlockType.SECURITY_DESK)
{
if(pos.getY()+1 > 255 || !world.getBlockState(pos.up()).getBlock().isReplaceable(world, pos.up()))
if(world.isOutsideBuildHeight(pos.up()) || !world.getBlockState(pos.up()).getBlock().isReplaceable(world, pos.up()))
{
place = false;
}