Fix wrenching blocks not working

This commit is contained in:
tterrag1098 committed 2015-03-15 22:29:19 -04:00
1 parent 1592a1e360
commit 110355829a
1 file changed
+1 -1
@@ -37,7 +37,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, true);
block.harvestBlock(world, entityPlayer, x, y, z, world.getBlockMetadata(x, y, z));
tool.used(entityPlayer.getCurrentEquippedItem(), entityPlayer, x, y, z);
return true;
}