Don't add "chargeFlag" when player has no exopack
This commit is contained in:
parent
956531e08b
commit
aa2e053c26
@ -244,10 +244,12 @@ abstract class MatteryMenu(
|
||||
)
|
||||
}
|
||||
|
||||
chargeFlag = Delegate.Of(
|
||||
getter = { slotIndex in mattery.slotsChargeFlag },
|
||||
setter = booleanInput(true) { if (mattery.hasExopack) { if (it) mattery.slotsChargeFlag.add(slotIndex) else mattery.slotsChargeFlag.remove(slotIndex) } }::accept
|
||||
)
|
||||
if (mattery.hasExopack) {
|
||||
chargeFlag = Delegate.Of(
|
||||
getter = { slotIndex in mattery.slotsChargeFlag },
|
||||
setter = booleanInput(true) { if (mattery.hasExopack) { if (it) mattery.slotsChargeFlag.add(slotIndex) else mattery.slotsChargeFlag.remove(slotIndex) } }::accept
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user