fix the lack of methods a few mods used in BC 7.0.9
This commit is contained in:
parent
4190c56f1e
commit
cc687719fb
2 changed files with 10 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue