mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-20 07:02:32 +01:00
fix: send load chunks game state in Player#refreshClientStateAfterRespawn to fix change skin & dimension changes
(cherry picked from commit e7b0e702f6
)
This commit is contained in:
parent
d544c8776a
commit
06695f71f0
@ -543,6 +543,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
|||||||
* Sends necessary packets to synchronize player data after a {@link RespawnPacket}
|
* Sends necessary packets to synchronize player data after a {@link RespawnPacket}
|
||||||
*/
|
*/
|
||||||
private void refreshClientStateAfterRespawn() {
|
private void refreshClientStateAfterRespawn() {
|
||||||
|
sendPacket(new ChangeGameStatePacket(ChangeGameStatePacket.Reason.LEVEL_CHUNKS_LOAD_START, 0));
|
||||||
sendPacket(new ServerDifficultyPacket(MinecraftServer.getDifficulty(), false));
|
sendPacket(new ServerDifficultyPacket(MinecraftServer.getDifficulty(), false));
|
||||||
sendPacket(new UpdateHealthPacket(this.getHealth(), food, foodSaturation));
|
sendPacket(new UpdateHealthPacket(this.getHealth(), food, foodSaturation));
|
||||||
sendPacket(new SetExperiencePacket(exp, level, 0));
|
sendPacket(new SetExperiencePacket(exp, level, 0));
|
||||||
|
Loading…
Reference in New Issue
Block a user