소스 검색

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
 }