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

+1 -1
View File
@@ -17,7 +17,7 @@ buildscript {
apply plugin: 'forge'
version = "1.7.10-1.6.4"
version = "1.7.10-1.7.1"
group= "com.jaquadro.minecraft.storagedrawers" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "StorageDrawers"
@@ -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;
}