FlansMods / FlansMod

Flan's Mod for Minecraft
Other
236 stars 149 forks source link

Plane destruction while piloting in third-person view leads to unintended consequences. #1250

Open matt-bel opened 4 years ago

matt-bel commented 4 years ago

I believe some people have mentioned this bug before (I have in a previous issue), but there hasn't been any systematic description of it.

Describe the bug In multiplayer (or singleplayer lan), when a player is flying in a plane in third person mode, and that plane is destroyed, the player becomes unable to move, and is stuck in the air. Doing something like /tp "bugged_player" "normal_player" changes the location of the player for others, however on the bugged player's screen, everything remains the same.

Additionally, the bugged player can shoot, access their inventory (even though the GUI for the hotbar is entirely concealed), and the bullets will come from the location other players see, not the location the bugged player thinks they are at. The only solution to get the player out of this state is to kill them.

To Reproduce Steps to reproduce the behaviour:

  1. Have two players.
  2. Have player A go in any plane (I experimented with a zero, biplane, two-seat biplane), get in third person mode (looking at the plane from behind)
  3. Have player B shoot down player A, destroying the vehicle core.
  4. Player A will now experience the aforementioned behavior.

Screenshots 2020-06-20_18 23 21

In this image, the player in diamond armor down below sees me right nearby, whereas I am stuck in the air. Note that I am NOT using f1 to take this picture, I can't see my hotbar no matter what.

Versions (please complete the following information)

Additional context The controls overhaul has caused multiple issues - this bug as well as https://github.com/FlansMods/FlansMod/issues/1102

I've been trying to patch it, but can't find a solution yet. I have not found anything in logs that would make sense of this issue. On occasion, the bugged player will be kicked for flying, however this is not consistent.

yagdev commented 4 years ago

You can also do this alone, by crashing your plane.