mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 21:39:40 +00:00
fix a missed y level check for security desk
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user