mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-09 14:27:10 +00:00
fix first attack being weaponless (#1709)
This commit is contained in:
parent
35bcaf6e95
commit
5ccd15a7d8
@ -117,7 +117,6 @@ void GameMessageHandler::HandleMessage(RakNet::BitStream& inStream, const System
|
|||||||
}
|
}
|
||||||
|
|
||||||
case MessageType::Game::PLAYER_LOADED: {
|
case MessageType::Game::PLAYER_LOADED: {
|
||||||
GameMessages::SendRestoreToPostLoadStats(entity, sysAddr);
|
|
||||||
entity->SetPlayerReadyForUpdates();
|
entity->SetPlayerReadyForUpdates();
|
||||||
|
|
||||||
auto* ghostComponent = entity->GetComponent<GhostComponent>();
|
auto* ghostComponent = entity->GetComponent<GhostComponent>();
|
||||||
@ -135,6 +134,8 @@ void GameMessageHandler::HandleMessage(RakNet::BitStream& inStream, const System
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GameMessages::SendRestoreToPostLoadStats(entity, sysAddr);
|
||||||
|
|
||||||
auto* destroyable = entity->GetComponent<DestroyableComponent>();
|
auto* destroyable = entity->GetComponent<DestroyableComponent>();
|
||||||
destroyable->SetImagination(destroyable->GetImagination());
|
destroyable->SetImagination(destroyable->GetImagination());
|
||||||
Game::entityManager->SerializeEntity(entity);
|
Game::entityManager->SerializeEntity(entity);
|
||||||
|
Loading…
Reference in New Issue
Block a user