#2093 Fix breaking facade preserving conduits

This commit is contained in:
tterrag1098 committed 2015-03-17 08:22:43 -04:00
1 parent 05f2c28afd
commit b09d475485
1 file changed
+2 -3
@@ -379,8 +379,7 @@ public class BlockConduitBundle extends BlockEio implements IGuiHandler, IFacade
}
@Override
public boolean removedByPlayer(World world, EntityPlayer player, int x,
int y, int z) {
public boolean removedByPlayer(World world, EntityPlayer player, int x, int y, int z, boolean willHarvest) {
IConduitBundle te = (IConduitBundle) world.getTileEntity(x, y, z);
if(te == null) {
return true;
@@ -593,7 +592,7 @@ public class BlockConduitBundle extends BlockEio implements IGuiHandler, IFacade
if(tool != null) {
if(tool.canUse(player.getCurrentEquippedItem(), player, x, y, z)) {
if(!world.isRemote) {
removedByPlayer(world, player, x, y, z);
removedByPlayer(world, player, x, y, z, true);
tool.used(player.getCurrentEquippedItem(), player, x, y, z);
}
return true;