Remove remaining MatteryContainer usages

This commit is contained in:
DBotThePony 2025-03-14 18:32:28 +07:00
parent 05bdff6a37
commit d0904da1db
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -509,8 +509,8 @@ class MatteryPlayer(val ply: Player) {
}
}
val input = MatteryContainer(Runnable { notify(IdleReason.ITEM) }, 1)
val output = MatteryContainer(Runnable { notify(IdleReason.ITEM) }, 1)
val input = EnhancedContainer.WithListener(1) { notify(IdleReason.ITEM) }
val output = EnhancedContainer.WithListener(1) { notify(IdleReason.ITEM) }
init {
savetables.stateful(::input, "exopack_smelter_input_$index")
@ -539,7 +539,7 @@ class MatteryPlayer(val ply: Player) {
*/
val exopackEnergy = ProfiledEnergyStorage(BatteryBackedEnergyStorage(ply, syncher, Decimal.ZERO, ExopackConfig.ENERGY_CAPACITY, false, onChange = { for (v in smelters) v.notify(MachineJobEventLoop.IdleReason.POWER) }))
val exopackChargeSlots = MatteryContainer(4)
val exopackChargeSlots = EnhancedContainer.Simple(4)
var acceptExopackChargeFromWirelessCharger = true
init {