浏览代码

postSpawnComplete listener cleanup

AzaezelX 1 月之前
父节点
当前提交
229cc9709e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Templates/BaseGame/game/core/clientServer/scripts/server/connectionToClient.tscript

+ 1 - 0
Templates/BaseGame/game/core/clientServer/scripts/server/connectionToClient.tscript

@@ -291,6 +291,7 @@ function GameConnectionListener::onPostSpawnComplete(%this, %client)
     if (%client.moduleLoadedDone < %client.numModsNeedingLoaded)
         return; //continue to wait 
         
+   %client.GetEventManager().remove( %client.listener, "postSpawnComplete" );
     //Continue on. Room for special handling here if needbe but not expressly required
 }