From 5ccd15a7d8e7746e0f50d446cfa2c4d44e89a940 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Wed, 1 Jan 2025 11:33:20 -0800 Subject: [PATCH] fix first attack being weaponless (#1709) --- dGame/dGameMessages/GameMessageHandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dGame/dGameMessages/GameMessageHandler.cpp b/dGame/dGameMessages/GameMessageHandler.cpp index 5ecc5e68..2e00ffab 100644 --- a/dGame/dGameMessages/GameMessageHandler.cpp +++ b/dGame/dGameMessages/GameMessageHandler.cpp @@ -117,7 +117,6 @@ void GameMessageHandler::HandleMessage(RakNet::BitStream& inStream, const System } case MessageType::Game::PLAYER_LOADED: { - GameMessages::SendRestoreToPostLoadStats(entity, sysAddr); entity->SetPlayerReadyForUpdates(); auto* ghostComponent = entity->GetComponent(); @@ -135,6 +134,8 @@ void GameMessageHandler::HandleMessage(RakNet::BitStream& inStream, const System } } + GameMessages::SendRestoreToPostLoadStats(entity, sysAddr); + auto* destroyable = entity->GetComponent(); destroyable->SetImagination(destroyable->GetImagination()); Game::entityManager->SerializeEntity(entity);