When using the Labeller to rename initialized variables, the name field is updated to the current name of the variable upon adding it. However, this isn't the case for non-variable items, which can also be renamed using the Labeller.
Steps to reproduce the problem:
Get a programmer and a labeler.
Create a Boolean false variable and name it "Named" in the programmer.
Get a stone sword. Rename it "Also named" in an anvil or a Labeller.
Open a Labeller and add the variable card. The name field will now read "Named".
Remove the variable card.
Add the stone sword. The name field will still be empty.
Expected behaviour:
The name field contains the string "Also named" in step 6.
Versions:
This mod: 1.22.0
Minecraft: 1.20.1
Forge: 47.3.0
First found in ATM9 NF, then reproduced in raw forge install.
Issue type:
Short description:
When using the Labeller to rename initialized variables, the name field is updated to the current name of the variable upon adding it. However, this isn't the case for non-variable items, which can also be renamed using the Labeller.
Steps to reproduce the problem:
Get a programmer and a labeler.
Create a Boolean false variable and name it "Named" in the programmer.
Get a stone sword. Rename it "Also named" in an anvil or a Labeller.
Open a Labeller and add the variable card. The name field will now read "Named".
Remove the variable card.
Add the stone sword. The name field will still be empty.
Expected behaviour:
The name field contains the string "Also named" in step 6.
Versions:
First found in ATM9 NF, then reproduced in raw forge install.
Log file: