mojira.dev
MC-2791

The player model in the inventory screen renders in the wrong orientation when it's not standing up straight

The bug

When the player is flying, the model in the inventory doesn't shifting its body correctly relative to the mouse position. For example, suppose the game is set to full-screen. If your cursor is at the left side of the screen, the model would look towards your cursor correctly. However, if your cursor is at the right side of the screen, the model would be shifting in the opposite direction relative to the cursor.

This issue does not seem to affect the player's swimming pose.

How to reproduce

  1. Equip elytra

  2. Fly using your elytra

  3. Open your inventory menu

  4. Move your mouse around, especially to the left and right side of Minecraft (or screen, if you're playing in full-screen mode.)

  5. Note the model's behavior in relation to the mouse cursor

History of this issue

Originally, this ticket was reported for the inventory screen if the player is dead/dying. However, as of 15w41b, the inventory now closes when you die. It has then been suggested that this issue also occurs when opening the inventory after right-clicking a bed, but before getting into it. This video shows how that looks as of 20w07a: https://youtu.be/1bJgALyjt1Y.

Linked issues

MC-19485 Sneaking Dead Body Resolved MC-56513 Weird Inventory!!! Not Common But Please Fix!!! Resolved MC-89922 Players render upsidedown Resolved MC-90048 Bug When Use Elytra And Open Inventory Resolved MC-90079 If gliding with Elytra Character in Inventory looks Strange Resolved

Attachments

Comments 53

I think the bug should be that you can access your inventory at all during death. It may be better to simply force the inventory GUI to close upon death, as you shouldn't have access to it until you respawn.

What if you're doing something in your inventory, while you're at half a heart left, a zombie came up and killed you, and your mouse is outside of the inventory while you're holding a stack of diamonds?

Especially when the server has settings:
/gamerule keepInventory true

When all of the mentioned above happens, your diamonds will pop out of your inventory, and risk being thrown into a pit of lava, when you can avoid that entirely by not having the inventory GUI affect you when you're holding a stack of items.

It'll become an annoyance for you in the long run.

Thus, I propose that when you die with the inventory menu opened, your model falls down but the inventory doesn't close up immediately. This tells the player that he/she has died, and will take actions upon it.

As of snapshot 13w10b, this problem still exists. Note that when a player dies, the player's skin is reverted back to the default skin.

The bug isn't that the player model doesn't follow the mouse correctly, it's that you can actively use the inventory while dead, as stated above. That means that if you couldn't use the inventory, the bug would be fixed. 🙂

Seems easy enough!

I'm going to let others decide on this issue then. As mentioned, it's really easy to fix this.

43 more comments

I can still reproduce it in 1.20.5

[media]

I updated the title because from my testing the orientation generally was problematic, the shifting in relation to the cursor seemed mostly fine

Can confirm in 1.21.6-pre1

[media]

[media]

Can confirm in version 1.21.6

Tom Lee

(Unassigned)

Confirmed

Platform

Normal

Player, Rendering

behavior, model

Minecraft 1.4.2, Minecraft 1.4.4, Snapshot 13w10b, Minecraft 1.5, Snapshot 13w11a, ..., 23w14a, 1.20.1, 1.20.2, 1.20.4, 24w34a

Retrieved