mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fix swimming
This commit is contained in:
parent
5913cb6164
commit
2d0a584106
1 changed files with 8 additions and 0 deletions
|
@ -56,6 +56,14 @@ public class BedrockActionTranslator extends PacketTranslator<PlayerActionPacket
|
||||||
// Don't put anything here as respawn is already handled
|
// Don't put anything here as respawn is already handled
|
||||||
// in BedrockRespawnTranslator
|
// in BedrockRespawnTranslator
|
||||||
break;
|
break;
|
||||||
|
case START_SWIMMING:
|
||||||
|
ClientPlayerStatePacket startSwimPacket = new ClientPlayerStatePacket((int) entity.getEntityId(), PlayerState.START_SPRINTING);
|
||||||
|
session.getDownstream().getSession().send(startSwimPacket);
|
||||||
|
break;
|
||||||
|
case STOP_SWIMMING:
|
||||||
|
ClientPlayerStatePacket stopSwimPacket = new ClientPlayerStatePacket((int) entity.getEntityId(), PlayerState.STOP_SPRINTING);
|
||||||
|
session.getDownstream().getSession().send(stopSwimPacket);
|
||||||
|
break;
|
||||||
case START_GLIDE:
|
case START_GLIDE:
|
||||||
case STOP_GLIDE:
|
case STOP_GLIDE:
|
||||||
ClientPlayerStatePacket glidePacket = new ClientPlayerStatePacket((int) entity.getEntityId(), PlayerState.START_ELYTRA_FLYING);
|
ClientPlayerStatePacket glidePacket = new ClientPlayerStatePacket((int) entity.getEntityId(), PlayerState.START_ELYTRA_FLYING);
|
||||||
|
|
Loading…
Reference in a new issue