From c4dd0040ee986e367c32523d96c9a270bb65edb7 Mon Sep 17 00:00:00 2001 From: phosit Date: Thu, 25 Sep 2025 14:47:42 +0200 Subject: [PATCH] Never serialize an event when it's not owned --- .../mods/public/simulation/components/AIProxy.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/binaries/data/mods/public/simulation/components/AIProxy.js b/binaries/data/mods/public/simulation/components/AIProxy.js index 7ddcc4f98b..0349ee83d7 100644 --- a/binaries/data/mods/public/simulation/components/AIProxy.js +++ b/binaries/data/mods/public/simulation/components/AIProxy.js @@ -173,14 +173,11 @@ AIProxy.prototype.GetRepresentation = function() AIProxy.prototype.NotifyChange = function() { - if (this.needsFullGet) - { - // not yet notified, be sure that the owner is set before doing so - // as the Create event is sent only on first ownership changed - const cmpOwnership = Engine.QueryInterface(this.entity, IID_Ownership); - if (!cmpOwnership || cmpOwnership.GetOwner() < 0) - return false; - } + // not yet notified, be sure that the owner is set before doing so + // as the Create event is sent only on first ownership changed + const cmpOwnership = Engine.QueryInterface(this.entity, IID_Ownership); + if (!cmpOwnership || cmpOwnership.GetOwner() < 0) + return false; if (!this.changes) {