fix android charger not using battery from its own slot
This commit is contained in:
parent
574d3721b1
commit
a618436ddd
@ -25,7 +25,8 @@ class AndroidChargerBlockEntity(blockPos: BlockPos, blockState: BlockState) : Ma
|
|||||||
return AndroidChargerMenu(containerID, inventory, this)
|
return AndroidChargerMenu(containerID, inventory, this)
|
||||||
}
|
}
|
||||||
|
|
||||||
val energyConfig = ConfigurableEnergy(ProfiledEnergyStorage(WorkerEnergyStorage(this::markDirtyFast, MachinesConfig.ANDROID_CHARGER)), modesTop = FlowDirection.NONE)
|
override val energy = ProfiledEnergyStorage(WorkerEnergyStorage(this::markDirtyFast, MachinesConfig.ANDROID_CHARGER))
|
||||||
|
val energyConfig = ConfigurableEnergy(energy, modesTop = FlowDirection.NONE)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
savetables.stateful(energyConfig::energy, ENERGY_KEY)
|
savetables.stateful(energyConfig::energy, ENERGY_KEY)
|
||||||
|
Loading…
Reference in New Issue
Block a user