Skip to content

Commit

Permalink
Fix avatar location not being cleared when changing regions
Browse files Browse the repository at this point in the history
  • Loading branch information
Crypto137 committed Jun 9, 2024
1 parent 669d0f0 commit 785773c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MHServerEmu.Games/Network/PlayerConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ public void ExitGame()
Player.ExitGame();
SendMessage(NetMessageBeginExitGame.DefaultInstance);
SendMessage(NetMessageRegionChange.CreateBuilder().SetRegionId(0).SetServerGameId(0).SetClearingAllInterest(true).Build());

Player.CurrentAvatar.BasePosition = null;
Player.CurrentAvatar.BaseOrientation = null;
}

#endregion
Expand Down

0 comments on commit 785773c

Please sign in to comment.