
Ingredient map keys get set wrong when opened
MincraftEinstein opened this issue ยท 4 comments
When using an ingredient as a map key the values in the ingredient menu are set to the values of the last key in the map. Additionally, the map entry seems to be removed once the map menu is closed
Mod Loader: Fabric
Minecraft Version: 1.21.1
Mod Version: 0.6.5
I would strongly recommend not to use an ingredient as a key, vanilla ingredients aren't designed to be compared using equals
in normal circumstances as far as I know, though I will look to make collection behavior consistent for validated versions of them.
I'm honestly not sure the behavior you are going for here, as referencing the map by key would probably be tricky, no?
If this relates to the colors, I can guess that the intent is to match some collection of items to a color, based on other issues open. In that case, using a map would be a decent way to lay this behavior out.