mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 12:19:55 +00:00
#1259 shift right click on vacuum chest with a wrench causes it to disappear
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user