[1.18.2] Incompatibility with Immersive Weathering and Botania, gives strange repeating tooltips
StaticSapphic opened this issue ยท 7 comments
I'm not entirely sure what the link between these three mods are but when playing with Emi-Loot and Immersive Weathering installed, weapons have a tooltip that says "Killed by , Killed by , or Killed by" repeated twice
Tested with only the following mods installed:
emi_loot-0.3.1+1.18.2.jar
emi-0.4.3+1.18.2.jar
fabric-api-0.67.0+1.18.2.jar
immersive_weathering-1.18.2-3.0.2-fabric.jar
If I replace Immersive Weathering with Botania it has a similar result, and it appears to be repeating the string "that is Manasteel Shears, Shears or Elementium Shears"
Botania-1.18.2-435-FABRIC.jar
emi_loot-0.3.1+1.18.2.jar
emi-0.4.3+1.18.2.jar
fabric-api-0.67.0+1.18.2.jar
Patchouli-1.18.2-71.1-FABRIC.jar
trinkets-3.3.1.jar
Thank you for the notice! Quite a strange result you are seeing, as I don't think I interact with the normal tooltips at all.. or at least don't remember where I did that. Are there any other notable types of repeating tooltip? Or just the killed by and botania one?
As far as I can tell its just the killed by and botania one. I made a decently sized modpack (~130 mods) and botania was the first mod that I removed (since the message mentioned manasteel) and then it changed to the killed by message. I removed and readded a lot of different of combinations of mods and no other messages other than the killed by one showed up which makes me think its only those two
If it helps I remember seeing killed by as an entry in your lang file. It's really strange because you'd expect it to show a string from Immersive Weathering like it did with Botania
Thanks for investigating that on your end a bit more! I'm pretty stumped as to what could be causing that, as EMI Loot doesn't interact directly with tooltips at all.
I have been able to replicate this on my end, so there's definitely something going on. That said; as far as I can tell, this is unique to 1.18.2. I wasn't able to replicate on 1.19.2.
@AstralOrdana , strange interaction between IW and EL on 1.18.2 here. Any insight you can give from your end? This only happens when IW is active, without it the weapon/equipment tooltips are like normal.
Something seems to be takingthe LiteralText.EMPTY
in the ItemStack tooltip that makes the blank space before "When in Main Hand" and replacing it with a random combination of pieces from my lang file.
I've ruled out Cloth Config and ModMenu, both of with are jar-in-jar with IW
After poring over... lots of raw classes from mixin debug output, I think the issue involves the TooltipComponentCallback.EVENT
. How it ends up dragging in random snippets of parsed (?) loot data I still have no idea. Looking in Botania's and Moonlight Lib's code, I'm not seeing any link that would invoke anything from Emi Loot.
Based on this, I'm betting that Modern Industrialization, Industrial Revolution, AE2, Iconic Wands, and a few others may also trigger similar weird tooltip rendering (based on results of this search: https://github.com/search?p=1&q=TooltipComponentCallback&type=Code )
Edit 1 - 11/28/22: keeping some notes here as I delve into possible interaction points. Have ruled out any of my Widgets' getTooltip
.
Edit 2: The source of the tooltip seems to be the Tallow items "OR" condition (alternates condition). There are, however, other items in IW that use alternates. Seems like the last table to be parsed with one of these conditions is affected (blocks are parsed before mobs):