Not sure if bug - GUI text desync

Started by Lofty on Wed, 12/28/2022 - 18:15

Topic category: Help with MCreator software

Last seen on 04:04, 3. Feb 2023
Joined Dec 2022

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Not sure if bug - GUI text desync
Wed, 12/28/2022 - 18:15

Hello friends.

I have been researching forum topics involving syncing text field GUI to server.
During my testing, I discovered strange behavior:

This is the (unfinished) GUI that I am using to set the address on a stamp.
After reading the many forum topics about GUI sync to server for text field, my understanding is that there is not a sync by default.
However, when I set the NBT on the item using this GUI, this happens:

This appears to have successfully set the NBT of the item in my hand (client-side only?) to the text in the text field from the GUI (also client-side only?).
Debugging the value at the server level with chat output reveals this instead:

As far as the server is concerned, the text field in the GUI was blank, and the NBT on the item in my hand is using the appropriate default value "No Address Set" instead.
My best guess is that there is a bug involving setting the NBT of an item in a player's hand, which takes place clientside and does not touch the server? It is a weird thing.

Here is the procedure I am using to replicate this bug on a test server: