Call DelegateSyncher.observe
This commit is contained in:
parent
e047341cdb
commit
e63cce63ff
@ -41,6 +41,7 @@ abstract class AndroidFeature(val type: AndroidFeatureType<*>, val android: Matt
|
||||
open fun onAttack(event: LivingAttackEvent) {}
|
||||
|
||||
open fun collectNetworkPayload(): FastByteArrayOutputStream? {
|
||||
syncher.observe()
|
||||
return syncherRemote.write()
|
||||
}
|
||||
|
||||
|
@ -189,6 +189,7 @@ class AndroidResearch(val type: AndroidResearchType, val capability: MatteryPlay
|
||||
}
|
||||
|
||||
fun collectNetworkPayload(): FastByteArrayOutputStream? {
|
||||
syncher.observe()
|
||||
return syncherRemote.write()
|
||||
}
|
||||
|
||||
|
@ -1329,6 +1329,8 @@ class MatteryPlayerCapability(val ply: Player) : ICapabilityProvider, INBTSerial
|
||||
|
||||
tickedOnce = true
|
||||
|
||||
syncher.observe()
|
||||
publicSyncher.observe()
|
||||
val payload = privateSyncherRemote.write()
|
||||
|
||||
if (payload != null) {
|
||||
|
@ -383,6 +383,7 @@ abstract class MatteryMenu(
|
||||
protected fun matteryBroadcast() {
|
||||
beforeBroadcast()
|
||||
|
||||
mSynchronizer.observe()
|
||||
val payload = synchronizerRemote.write()
|
||||
|
||||
if (payload != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user