GeyserMC / Geyser

A bridge/proxy allowing you to connect to Minecraft: Java Edition servers with Minecraft: Bedrock Edition.
https://geysermc.org
MIT License
4.75k stars 687 forks source link

Bedrock players move at sprint speed if sprinting when entering the crawling state #2925

Open Dakotahps opened 2 years ago

Dakotahps commented 2 years ago

Describe the bug

Bedrock players, when entering the crawling state (if uninterrupted) and immediately sprinting, can move at normal sprint speed. Weirdly, if the player exits the crawling state, and enters it again from the exact same block, they cannot perform the bug again until entering the crawling state from a different block. I haven't tested normal crawling, this crawling is achieved through teleporting the player inside a glass block, which pushes them down. If it's a solid block, instead, the player will take a bit of damage, and be unable to produce the bug, this is a little troublesome, as I'm trying to make a game map, and players have no form of regeneration in said game.

To Reproduce

  1. Enter a server on Bedrock Edition (Preferably on a phone with a controller, as this is the setup used when the bug was discovered)
  2. Make a command block to teleport into the head level glass block,
  3. Sprint after entering the crawling state, if replicated correctly this should work.
  4. If you have a large enough crawl space, you'll immediately notice how fast you can move.

Expected behaviour

The player gets pushed down, and maybe, for a few ticks moves at the sprint speed (Simply as the game catches up), and then immediately have their speed reduced to crawling

Screenshots / Videos

https://user-images.githubusercontent.com/87921300/162848094-7a235614-d559-4bfb-b67a-3ce2233fce31.mp4

Server Version and Plugins

Server Version: "This server is running CraftBukkit version 3198-Spigot-18c71bf-0abf420 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT)"

Plugins:

Geyser Dump

https://dump.geysermc.org/8VcHcMGJVwjchoTtS23XOJzQwruGDq9z

Geyser Version

2.0.2-SNAPSHOT (git-master-1d3eebc)

Minecraft: Bedrock Edition Version

1.18.12

Additional Context

This movement bug seems to resolve itself if any form of speed changing effect is applied to the player (Speed, Slowness, etc) same with taking damage.

AnhNguyenlost13 commented 2 years ago

I can recreate this by sprinting directly in crawling position. Certainly helpful abusing it :)