Fix being able to switch inventory charge flag before getting exopack
This commit is contained in:
parent
c97ab62faa
commit
4279840a23
@ -291,7 +291,7 @@ abstract class MatteryMenu(
|
|||||||
|
|
||||||
chargeFlag = GetterSetter.of(
|
chargeFlag = GetterSetter.of(
|
||||||
getter = { slotIndex in mattery.slotsChargeFlag },
|
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
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user