Fixed a load of crashes becuase of the new rotation system. Fixed powered tiles

This commit is contained in:
Modmuss50 2015-09-05 11:44:41 +01:00
parent 5fe5fce53c
commit fe11409b4e
14 changed files with 61 additions and 34 deletions

View file

@ -87,12 +87,12 @@ public class TileLesu extends TilePowerAcceptor {//TODO wrench
@Override
public boolean canAcceptEnergy(ForgeDirection direction) {
return Functions.getIntDirFromDirection(direction) != worldObj.getBlockMetadata(xCoord, yCoord, zCoord);
return Functions.getIntDirFromDirection(direction) != getMeta();
}
@Override
public boolean canProvideEnergy(ForgeDirection direction) {
return Functions.getIntDirFromDirection(direction) == worldObj.getBlockMetadata(xCoord, yCoord, zCoord);
return Functions.getIntDirFromDirection(direction) == getMeta();
}
@Override