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 onAttack(event: LivingAttackEvent) {}
|
||||||
|
|
||||||
open fun collectNetworkPayload(): FastByteArrayOutputStream? {
|
open fun collectNetworkPayload(): FastByteArrayOutputStream? {
|
||||||
|
syncher.observe()
|
||||||
return syncherRemote.write()
|
return syncherRemote.write()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user