fix net compat rules not being considered in client netLoad
This commit is contained in:
parent
c47bceb3f3
commit
57a5afa13a
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user