diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-10-27 05:44:33 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-10-27 05:44:33 +1100 |
commit | e065981ce2490cca77a3785bba95715aa6eb3ac7 (patch) | |
tree | 641d429d7ee41dd60f8ca941fa8cdf18b27e9c3e | |
parent | beea448827a6d79067e58b19f820a67e2a044f98 (diff) |
Update StarWorldClient.cpp
-rw-r--r-- | source/game/StarWorldClient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarWorldClient.cpp b/source/game/StarWorldClient.cpp index 8d6cb82..6f0f2af 100644 --- a/source/game/StarWorldClient.cpp +++ b/source/game/StarWorldClient.cpp @@ -1327,7 +1327,7 @@ void WorldClient::addEntity(EntityPtr const& entity, EntityId entityId) { } else { auto entityFactory = Root::singleton().entityFactory(); auto netRules = m_clientState.netCompatibilityRules(); - m_outgoingPackets.append(make_shared<SpawnEntityPacket>(entity->entityType(), entityFactory->netStoreEntity(entity), entity->writeNetState(0, netRules).first)); + m_outgoingPackets.append(make_shared<SpawnEntityPacket>(entity->entityType(), entityFactory->netStoreEntity(entity, netRules), entity->writeNetState(0, netRules).first)); } } @@ -1873,7 +1873,7 @@ void WorldClient::notifyEntityCreate(EntityPtr const& entity) { auto firstNetState = entity->writeNetState(0, netRules); m_masterEntitiesNetVersion[entity->entityId()] = firstNetState.second; m_outgoingPackets.append(make_shared<EntityCreatePacket>(entity->entityType(), - Root::singleton().entityFactory()->netStoreEntity(entity), std::move(firstNetState.first), entity->entityId())); + Root::singleton().entityFactory()->netStoreEntity(entity, netRules), std::move(firstNetState.first), entity->entityId())); } } |