Add energy change per tick

This commit is contained in:
modmuss50 2018-04-03 17:00:04 +01:00
parent adb12ef43d
commit a8d180f146
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82

View file

@ -149,7 +149,9 @@ public class ContainerTileInventoryBuilder {
return this.syncIntegerValue(() -> (int) ((TilePowerAcceptor) this.tile).getEnergy(),
((TilePowerAcceptor) this.tile)::setEnergy)
.syncIntegerValue(() -> (int) ((TilePowerAcceptor) this.tile).extraPowerStoage,
((TilePowerAcceptor) this.tile)::setExtraPowerStoage);
((TilePowerAcceptor) this.tile)::setExtraPowerStoage)
.syncIntegerValue(() -> (int) ((TilePowerAcceptor) this.tile).getPowerChange(),
((TilePowerAcceptor) this.tile)::setPowerChange);
Core.logHelper.error(this.tile + " is not an instance of TilePowerAcceptor! Energy cannot be synced.");
return this;
}