mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-19 19:59:58 +00:00
Fix wrenching blocks not working
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user