This commit is contained in:
Modmuss50 2015-11-23 19:51:40 +00:00
parent ef82ceb714
commit 839647ed85
9 changed files with 86 additions and 99 deletions

View file

@ -45,14 +45,18 @@ public class TileIDSU extends TilePowerAcceptor {
return 1000000000;
}
//TODO meta fix
@Override
public boolean canAcceptEnergy(EnumFacing direction) {
return worldObj.getBlockMetadata(getPos().getX(), getPos().getY(), getPos().getZ()) != Functions.getIntDirFromDirection(direction);
//return worldObj.getBlockMetadata(getPos().getX(), getPos().getY(), getPos().getZ()) != Functions.getIntDirFromDirection(direction);
return true;
}
@Override
public boolean canProvideEnergy(EnumFacing direction) {
return worldObj.getBlockMetadata(getPos().getX(), getPos().getY(), getPos().getZ()) == Functions.getIntDirFromDirection(direction);
//return worldObj.getBlockMetadata(getPos().getX(), getPos().getY(), getPos().getZ()) == Functions.getIntDirFromDirection(direction);
return true;
}
@Override