forked from GeyserMC/Geyser
BedrockActionTranslator: Fix occasional death stall (#1432)
Usually this happened when joining from another dimension after the player exited to the main menu on the death screen. The player would not realize that they are dead.
This commit is contained in:
parent
a2a7e99402
commit
9b46bf8bc9
1 changed files with 2 additions and 0 deletions
|
@ -68,6 +68,8 @@ public class BedrockActionTranslator extends PacketTranslator<PlayerActionPacket
|
|||
eventPacket.setType(EntityEventType.RESPAWN);
|
||||
eventPacket.setData(0);
|
||||
session.sendUpstreamPacket(eventPacket);
|
||||
// Resend attributes or else in rare cases the user can think they're not dead when they are, upon joining the server
|
||||
entity.updateBedrockAttributes(session);
|
||||
break;
|
||||
case START_SWIMMING:
|
||||
ClientPlayerStatePacket startSwimPacket = new ClientPlayerStatePacket((int) entity.getEntityId(), PlayerState.START_SPRINTING);
|
||||
|
|
Loading…
Reference in a new issue