Some small power net tweaks, should make some things more stable

This commit is contained in:
modmuss50 2016-03-20 11:10:27 +00:00
parent 232fe0b625
commit edc8531b2d

View file

@ -213,7 +213,7 @@ public class TRPowerNet {
} }
public int getTotalCollectible() { public int getTotalCollectible() {
if (tile.canProvideEnergy(EnumFacing.NORTH)) { if (tile.canProvideEnergy(side)) {
return (int) Math.min(tile.getMaxOutput(), tile.getEnergy()); return (int) Math.min(tile.getMaxOutput(), tile.getEnergy());
} }
return 0; return 0;
@ -221,7 +221,7 @@ public class TRPowerNet {
public int getTotalInsertible() { public int getTotalInsertible() {
int total = 0; int total = 0;
if (tile.canAcceptEnergy(EnumFacing.NORTH)) { if (tile.canAcceptEnergy(side)) {
total += tile.addEnergy(type.transferRate, true); total += tile.addEnergy(type.transferRate, true);
} }