Fix hasExopack change does not invalidate current exopack menu

This commit is contained in:
DBotThePony 2023-08-10 16:39:07 +07:00
parent 834b05a697
commit 62fdff4a34
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -210,6 +210,7 @@ class MatteryPlayerCapability(val ply: Player) : ICapabilityProvider, INBTSerial
*/
var hasExopack by publicSynchronizer.bool(setter = setter@{ value, access, _ ->
access.write(value)
_exoPackMenu = null
if (value && ply is ServerPlayer) {
tickList.once {