Skip to content

Commit

Permalink
fix first attack being weaponless (#1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmosewaMC authored Jan 1, 2025
1 parent 35bcaf6 commit 5ccd15a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dGame/dGameMessages/GameMessageHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<GhostComponent>();
Expand All @@ -135,6 +134,8 @@ void GameMessageHandler::HandleMessage(RakNet::BitStream& inStream, const System
}
}

GameMessages::SendRestoreToPostLoadStats(entity, sysAddr);

auto* destroyable = entity->GetComponent<DestroyableComponent>();
destroyable->SetImagination(destroyable->GetImagination());
Game::entityManager->SerializeEntity(entity);
Expand Down

0 comments on commit 5ccd15a

Please sign in to comment.