mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-22 05:02:25 +00:00
#2093 Fix breaking facade preserving conduits
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user