mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-25 14:34:28 +00:00
Fix not being able to break conduits with a wrench in creative
This commit is contained in:
1 parent
880801a316
commit
f3af999ef2
1 file changed
+1
-1
@@ -133,7 +133,7 @@ public class ItemYetaWrench extends Item implements ITool, IConduitControl, IAdv
|
||||
@Override
|
||||
public boolean onBlockStartBreak(ItemStack itemstack, int x, int y, int z, EntityPlayer player) {
|
||||
Block block = player.worldObj.getBlock(x, y, z);
|
||||
if (block == EnderIO.blockConduitBundle && player.capabilities.isCreativeMode) {
|
||||
if (player.isSneaking() && block == EnderIO.blockConduitBundle && player.capabilities.isCreativeMode) {
|
||||
block.onBlockClicked(player.worldObj, x, y, z, player);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user