mojira.dev
MC-56223

In a chest, holding ESC+1 while highlighting any hotbar slot crashes game

Steps to reproduce

1. Open a container block (Chests can be used)
2. Highlight a hotbar slot
3. Hold down ESC and 1 keys at the same time

Crash. Log in attachments.

Linked issues

Attachments

Comments 4

Dlawso the Really Lucky Rabbit

Cannot reproduce.

Can anybody else reproduce other than Blah?

This might be the reason why it crashes. When you reproduce this bug, this is what happens:

When you press 1 while highlighting a slot, the game checks if there is anything in the 1st slot of the chest the player is opening. If there is anything in chest slot 1, the game moves the items in that slot to the highlighted inventory slot. If the game does the check after the chest is closed, it gets confused and crashes while "updating screen events".

It can be fixed by adding a 15-20 tick delay before closing a Container TileEntity when pressing ESC, dying, being teleported, and going in a nether portal.

kazblox

(Unassigned)

Confirmed

Minecraft 1.7.9, Minecraft 14w20b, Minecraft 14w21a, Minecraft 14w21b

Retrieved