From f3dbcb0dd525ef110ae1697500e277479fd90d6c Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 2 Sep 2024 20:19:28 +0700 Subject: [PATCH] Fix public self remote endpoint not being invalidated --- .../kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayer.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayer.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayer.kt index c418d3d34..dff6f0d84 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayer.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayer.kt @@ -535,8 +535,8 @@ class MatteryPlayer(val ply: Player) { } } - val input = MatteryContainer({ notify(IdleReason.ITEM) }, 1) - val output = MatteryContainer({ notify(IdleReason.ITEM) }, 1) + val input = MatteryContainer(Runnable { notify(IdleReason.ITEM) }, 1) + val output = MatteryContainer(Runnable { notify(IdleReason.ITEM) }, 1) init { savetables.stateful(::input, "exopack_smelter_input_$index") @@ -600,6 +600,7 @@ class MatteryPlayer(val ply: Player) { fun invalidateNetworkState() { privateSyncherRemote.invalidate() + publicSyncherRemote.invalidate() remoteSynchers.values.forEach { it.invalidate() } for (instance in research.values) {