Call DelegateSyncher.observe

This commit is contained in:
DBotThePony 2024-02-25 19:44:50 +07:00
parent e047341cdb
commit e63cce63ff
Signed by: DBot
GPG Key ID: DCC23B5715498507
4 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,7 @@ abstract class AndroidFeature(val type: AndroidFeatureType<*>, val android: Matt
open fun onAttack(event: LivingAttackEvent) {} open fun onAttack(event: LivingAttackEvent) {}
open fun collectNetworkPayload(): FastByteArrayOutputStream? { open fun collectNetworkPayload(): FastByteArrayOutputStream? {
syncher.observe()
return syncherRemote.write() return syncherRemote.write()
} }

View File

@ -189,6 +189,7 @@ class AndroidResearch(val type: AndroidResearchType, val capability: MatteryPlay
} }
fun collectNetworkPayload(): FastByteArrayOutputStream? { fun collectNetworkPayload(): FastByteArrayOutputStream? {
syncher.observe()
return syncherRemote.write() return syncherRemote.write()
} }

View File

@ -1329,6 +1329,8 @@ class MatteryPlayerCapability(val ply: Player) : ICapabilityProvider, INBTSerial
tickedOnce = true tickedOnce = true
syncher.observe()
publicSyncher.observe()
val payload = privateSyncherRemote.write() val payload = privateSyncherRemote.write()
if (payload != null) { if (payload != null) {

View File

@ -383,6 +383,7 @@ abstract class MatteryMenu(
protected fun matteryBroadcast() { protected fun matteryBroadcast() {
beforeBroadcast() beforeBroadcast()
mSynchronizer.observe()
val payload = synchronizerRemote.write() val payload = synchronizerRemote.write()
if (payload != null) { if (payload != null) {