YuRaNnNzZZ — Вчера, в 20:54

мне кажется надо задать максимальный размер стака 1 в банках
:WiseTree:
This commit is contained in:
YuRaNnNzZZ 2023-07-11 19:02:32 +03:00
parent 30fdd2fd28
commit 203f4e56c9
Signed by: YuRaNnNzZZ
GPG Key ID: 5F71738C85A6006D
3 changed files with 5 additions and 3 deletions

View File

@ -126,6 +126,8 @@ class MatterCapacitorBankBlockEntity(p_155229_: BlockPos, p_155230_: BlockState)
capacitorStatus[slot].boolean = new.getCapability(MatteryCapability.MATTER).isPresent
gaugeLevel = (storedMatter / maxStoredMatter).toFloat()
}
override fun getMaxStackSize(): Int = 1
}.also(::addDroppableContainer)
val itemConfig = ConfigurableItemHandler(inputOutput = container.handler(object : HandlerFilter {

View File

@ -54,9 +54,7 @@ class PatternStorageBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) :
super.setChanged(slot, new, old)
}
override fun getMaxStackSize(): Int {
return 1
}
override fun getMaxStackSize(): Int = 1
}.also(::addDroppableContainer)
private fun updateBlockstate() {

View File

@ -35,6 +35,8 @@ class BatteryBankBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) : Matte
batteryStatus[slot].boolean = new.getCapability(ForgeCapabilities.ENERGY).isPresent
gaugeLevel = batteryLevel.percentage(maxBatteryLevel)
}
override fun getMaxStackSize(): Int = 1
}.also(::addDroppableContainer)
val batteryStatus = immutableList(CAPACITY) {