Some small power net tweaks, should make some things more stable
This commit is contained in:
parent
232fe0b625
commit
edc8531b2d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue