Item.SetNameOverride() behaves very weirdly with Journey Mode duplication menu #4467
Labels
NEW ISSUE
Flags an Issue as new. To be removed once issue is assessed.
Requestor-Modders
Issues or PRs adding or fixing TML modder API
Version
Latest 1.4.4-stable
OS
Windows
Platform
Steam
This bug affects...
Mod capability as a Modder
Description
When a vanilla item's name has been overridden using
Item.SetNameOverride()
, rolling over that item in the Journey Mode duplication menu causes all other items in the duplication menu to have the same name.Log File
client.log
Launch.log
Natives.log
environment-client.log
Steps to reproduce
Expected Behavior
The other items still show their vanilla name.
Actual Behavior
After rolling over the copper bar, all items in the duplication menu display their name as "Renamed copper bar", and this persists until you exit the world. (Other attributes like tooltips and rarity are unaffected.) If you put items in your inventory from the duplication menu, they will keep their erroneously modified names.
Reproduction frequency
Consistently, I guess. I disabled all mods other than mine and it still was reproducible.
Additional Information
If my code is actually just wrong, please let me know.
The text was updated successfully, but these errors were encountered: