diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-01-05 15:21:59 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-01-05 15:21:59 +1100 |
commit | 57a5afa13a027429c2758582ba1f581d0272fcc4 (patch) | |
tree | a5e23e7b3a5cb7167228679390313adb4935c503 | |
parent | c47bceb3f3ea0d041f3a6cb053f932c00c39f396 (diff) |
fix net compat rules not being considered in client netLoad
-rw-r--r-- | source/game/StarWorldClient.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/game/StarWorldClient.cpp b/source/game/StarWorldClient.cpp index 6f0f2af..efc2eb7 100644 --- a/source/game/StarWorldClient.cpp +++ b/source/game/StarWorldClient.cpp @@ -771,8 +771,9 @@ void WorldClient::handleIncomingPackets(List<PacketPtr> const& packets) { removeEntity(entityCreate->entityId, false); } - auto entity = entityFactory->netLoadEntity(entityCreate->entityType, entityCreate->storeData); - entity->readNetState(entityCreate->firstNetState, 0.0f, m_clientState.netCompatibilityRules()); + auto netRules = m_clientState.netCompatibilityRules(); + auto entity = entityFactory->netLoadEntity(entityCreate->entityType, entityCreate->storeData, netRules); + entity->readNetState(entityCreate->firstNetState, 0.0f, netRules); entity->init(this, entityCreate->entityId, EntityMode::Slave); m_entityMap->addEntity(entity); |