This commit is contained in:
modmuss50 2016-04-01 19:40:08 +01:00
parent 04f0736568
commit 477a60e8de

View file

@ -316,7 +316,7 @@ public class TRPowerNet
public int addEnergy(int max) public int addEnergy(int max)
{ {
int total = 0; int total = 0;
if (tile.canAcceptEnergy(side) && max > 0) if (tile.canAcceptEnergy(side.getOpposite()) && max > 0)
{ {
if (type.tier.ordinal() > tile.getTier().ordinal() && max > tile.getMaxInput()) if (type.tier.ordinal() > tile.getTier().ordinal() && max > tile.getMaxInput())
{ {