Add energy change per tick
This commit is contained in:
parent
adb12ef43d
commit
a8d180f146
1 changed files with 3 additions and 1 deletions
|
@ -149,7 +149,9 @@ public class ContainerTileInventoryBuilder {
|
||||||
return this.syncIntegerValue(() -> (int) ((TilePowerAcceptor) this.tile).getEnergy(),
|
return this.syncIntegerValue(() -> (int) ((TilePowerAcceptor) this.tile).getEnergy(),
|
||||||
((TilePowerAcceptor) this.tile)::setEnergy)
|
((TilePowerAcceptor) this.tile)::setEnergy)
|
||||||
.syncIntegerValue(() -> (int) ((TilePowerAcceptor) this.tile).extraPowerStoage,
|
.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.");
|
Core.logHelper.error(this.tile + " is not an instance of TilePowerAcceptor! Energy cannot be synced.");
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue