fix the lack of methods a few mods used in BC 7.0.9

This commit is contained in:
Adrian 2015-06-14 14:36:33 +02:00
parent 4190c56f1e
commit cc687719fb
2 changed files with 10 additions and 0 deletions

View file

@ -89,6 +89,11 @@ public abstract class PipeLogicIron {
return false;
}
@Deprecated
public boolean blockActivated(EntityPlayer entityplayer) {
return blockActivated(entityplayer, ForgeDirection.UNKNOWN);
}
public boolean blockActivated(EntityPlayer entityplayer, ForgeDirection side) {
Item equipped = entityplayer.getCurrentEquippedItem() != null ? entityplayer.getCurrentEquippedItem().getItem() : null;
if (equipped instanceof IToolWrench && ((IToolWrench) equipped).canWrench(entityplayer, pipe.container.xCoord, pipe.container.yCoord, pipe.container.zCoord)) {

View file

@ -94,6 +94,11 @@ public abstract class PipeLogicWood {
}
}
@Deprecated
public boolean blockActivated(EntityPlayer entityplayer) {
return blockActivated(entityplayer, ForgeDirection.UNKNOWN);
}
public boolean blockActivated(EntityPlayer entityplayer, ForgeDirection side) {
Item equipped = entityplayer.getCurrentEquippedItem() != null ? entityplayer.getCurrentEquippedItem().getItem() : null;
if (equipped instanceof IToolWrench && ((IToolWrench) equipped).canWrench(entityplayer, pipe.container.xCoord, pipe.container.yCoord, pipe.container.zCoord)) {