Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-03 14:50:19 +01:00
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.
Dieser Commit ist enthalten in:
Ursprung
a2a7e99402
Commit
9b46bf8bc9
@ -68,6 +68,8 @@ public class BedrockActionTranslator extends PacketTranslator<PlayerActionPacket
|
|||||||
eventPacket.setType(EntityEventType.RESPAWN);
|
eventPacket.setType(EntityEventType.RESPAWN);
|
||||||
eventPacket.setData(0);
|
eventPacket.setData(0);
|
||||||
session.sendUpstreamPacket(eventPacket);
|
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;
|
break;
|
||||||
case START_SWIMMING:
|
case START_SWIMMING:
|
||||||
ClientPlayerStatePacket startSwimPacket = new ClientPlayerStatePacket((int) entity.getEntityId(), PlayerState.START_SPRINTING);
|
ClientPlayerStatePacket startSwimPacket = new ClientPlayerStatePacket((int) entity.getEntityId(), PlayerState.START_SPRINTING);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren