Fix derp server load crash

This commit is contained in:
Justin Aquadro committed 2015-11-27 13:14:08 -05:00
1 parent bbad2a9a81
commit d24904d206
2 files changed
+3 -2

No files matched your search

@@ -394,7 +394,8 @@ public class BlockDrawers extends BlockContainer implements IExtendedBlockClickH
public boolean rotateBlock (World world, int x, int y, int z, ForgeDirection axis) {
TileEntityDrawers tile = getTileEntitySafe(world, x, y, z);
if (tile.isSealed()) {
harvestBlock(world, Minecraft.getMinecraft().thePlayer, x, y, z, world.getBlockMetadata(x, y, z));
dropBlockAsItem(world, x, y, z, world.getBlockMetadata(x, y, z), 0);
world.setBlockToAir(x, y, z);
return true;
}