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(
|
if (mattery.hasExopack) {
|
||||||
getter = { slotIndex in mattery.slotsChargeFlag },
|
chargeFlag = Delegate.Of(
|
||||||
setter = booleanInput(true) { if (mattery.hasExopack) { if (it) mattery.slotsChargeFlag.add(slotIndex) else mattery.slotsChargeFlag.remove(slotIndex) } }::accept
|
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