Fix being able to switch inventory charge flag before getting exopack

This commit is contained in:
DBotThePony 2024-01-06 21:09:14 +07:00
parent c97ab62faa
commit 4279840a23
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -291,7 +291,7 @@ abstract class MatteryMenu(
chargeFlag = GetterSetter.of(
getter = { slotIndex in mattery.slotsChargeFlag },
setter = booleanInput(true) { if (it) mattery.slotsChargeFlag.add(slotIndex) else mattery.slotsChargeFlag.remove(slotIndex) }::accept
setter = booleanInput(true) { if (mattery.hasExopack) { if (it) mattery.slotsChargeFlag.add(slotIndex) else mattery.slotsChargeFlag.remove(slotIndex) } }::accept
)
}
}