Fix containers being openable after destroyed#454
Fix containers being openable after destroyed#454democat3457 wants to merge 2 commits intoCharsetMC:1.12-stablefrom
Conversation
|
This doesn't check the distance, does it? |
|
no, but I just tested it, and the GUI was uninteractable after moving farther away using a minecart - would the (possibly redundant) distance check still be useful to put in regardless? |
|
Shouldn't the container's tile entity be invalidated? |
what do you mean? the method doesnt check anything on |
|
|
|
Hmm it must be that the TileEntity is never getting |
|
It might be that it doesn't propagate to the client side. |
|
@asiekierka Could this get merged anyway? It theoretically should be redundant if the |
Implements the fix stated on https://www.curseforge.com/minecraft/mc-mods/containerfix.
This PR fixes the fact that if you remain in a container's inventory after the container gets destroyed, you don't get booted out of the GUI by adding a check for if the tile entity at that location is still present.