fix net compat rules not being considered in client netLoad

This commit is contained in:
Kae 2025-01-05 15:21:59 +11:00
parent c47bceb3f3
commit 57a5afa13a

View File

@ -771,8 +771,9 @@ void WorldClient::handleIncomingPackets(List<PacketPtr> const& packets) {
removeEntity(entityCreate->entityId, false); removeEntity(entityCreate->entityId, false);
} }
auto entity = entityFactory->netLoadEntity(entityCreate->entityType, entityCreate->storeData); auto netRules = m_clientState.netCompatibilityRules();
entity->readNetState(entityCreate->firstNetState, 0.0f, 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); entity->init(this, entityCreate->entityId, EntityMode::Slave);
m_entityMap->addEntity(entity); m_entityMap->addEntity(entity);