Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
fix: send load chunks game state in Player#refreshClientStateAfterRes…
Browse files Browse the repository at this point in the history
…pawn to fix change skin & dimension changes
  • Loading branch information
mworzala committed Jan 26, 2024
1 parent 5347c0b commit e7b0e70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/minestom/server/entity/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ public void respawn() {
* Sends necessary packets to synchronize player data after a {@link RespawnPacket}
*/
private void refreshClientStateAfterRespawn() {
sendPacket(new ChangeGameStatePacket(ChangeGameStatePacket.Reason.LEVEL_CHUNKS_LOAD_START, 0));
sendPacket(new ServerDifficultyPacket(MinecraftServer.getDifficulty(), false));
sendPacket(new UpdateHealthPacket(this.getHealth(), food, foodSaturation));
sendPacket(new SetExperiencePacket(exp, level, 0));
Expand Down

0 comments on commit e7b0e70

Please sign in to comment.