-
Bug
-
Resolution: Unresolved
-
None
-
1.17.1, 1.18.1, 22w18a, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 23w43b
-
None
-
Confirmed
-
Networking
This can only be tested on multiplayer or if you open singleplayer to LAN, because the game pauses when opening a book in non-LAN singleplayer.
When you open a written book, and the book is then modified, or the book deleted, the gui isn't updated nor closed.
Steps to reproduce:
- Make a small command block setup as shown in the image
First command block (with button) has the commanditem replace entity @p hotbar.0 with minecraft:written_book{title:"Test Book",author:"You",pages:['{"text":"Test","clickEvent":{"action":"run_command","value":"/say hi"}}']}
The second command block has
item replace entity @p hotbar.0 with minecraft:written_book{title:"Test Book",author:"You",pages:['{"text":"Changed book"}']}
- Press the button
- Open the book in your hotbar before the second command block is powered
- Wait for the second command block to run
- Observe how the hand indicated the item changed, but the gui didn't update.
- Click the text
- Observe how the say command runs, while the player should no longer having access to it.
Replace the second command with
clear @p minecraft:written_book
And repeat steps 2 and after; notice the same result, even with the book gone that the gui doesn't disappear.