diff options
Diffstat (limited to 'source/game')
-rw-r--r-- | source/game/StarWorldServer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/game/StarWorldServer.cpp b/source/game/StarWorldServer.cpp index 680deaa..9860fb1 100644 --- a/source/game/StarWorldServer.cpp +++ b/source/game/StarWorldServer.cpp @@ -268,6 +268,9 @@ bool WorldServer::addClient(ConnectionId clientId, SpawnTarget const& spawnTarge clientInfo->outgoingPackets.append(make_shared<CentralStructureUpdatePacket>(m_centralStructure.store())); + for (auto& p : m_scriptContexts) + p.second->invoke("addClient", clientId, isLocal); + return true; } @@ -297,6 +300,9 @@ List<PacketPtr> WorldServer::removeClient(ConnectionId clientId) { packets.append(make_shared<WorldStopPacket>("Removed")); + for (auto& p : m_scriptContexts) + p.second->invoke("removeClient", clientId); + return packets; } |