#1259 shift right click on vacuum chest with a wrench causes it to disappear

This commit is contained in:
CrazyPants committed 2014-11-18 14:02:31 +08:00
1 parent 5fc1d21b2a
commit e957985a80
2 files changed
+2 -1

No files matched your search

@@ -34,7 +34,7 @@ public class ToolUtil {
public static boolean breakBlockWithTool(Block block, World world, int x, int y, int z, EntityPlayer entityPlayer) {
ITool tool = ToolUtil.getEquippedTool(entityPlayer);
if(tool != null && entityPlayer.isSneaking() && tool.canUse(entityPlayer.getCurrentEquippedItem(), entityPlayer, x, y, z)) {
block.removedByPlayer(world, entityPlayer, x, y, z);
block.removedByPlayer(world, entityPlayer, x, y, z, true);
tool.used(entityPlayer.getCurrentEquippedItem(), entityPlayer, x, y, z);
return true;
}