Open James103 opened 2 years ago
It doesn't do that for me .. but I don't have armor statues enabled. It looks like that data pack adds an advancement, but doesn't give the advancement an tab to be shown in, which is why there is no tab so the mod crashes with "tab is null".
I just inserted an extra check in that case, with some logging output. Could you check the prerelease here to check if it works for you, please?
Sorry for the delay. I just tried the same thing in AdvancementInfo 1.18-fabric0.43.1-1.3 and got effectively the same crash. Crash log: crash-2021-12-18_19.27.20-client.txt
That's why I asked if you could test it, before releasing the 1.17 version and creating a new 1.18 version which might have the same bug .. you'd need an 1.3.1 version, which I didn't make for 1.18 yet.
I just made a minimal 1.17.1 instance with your mod, Fabric loader, and Fabric API. When attempting to reproduce with the new version, I get the following log lines instead of a crash:
Mods:
[✔️] advancementinfo-1.17.1-fabric0.36.1-1.3.1
[✔️] fabric-api-0.44.0+1.17
...
[12:43:09] [Render thread/DEBUG]: - armor_statues:enable enable_as_trigger:
[12:43:09] [Render thread/INFO]: no tab found for advancement armor_statues:enable title enable_as_trigger description
AdvancementInfo 1.17.1-fabric0.36.1-1.3 Fabric API 0.37.2+1.17 Minecraft 1.17.1 Java 16
When attempting to filter with empty search text, the client crashes with the following stack trace:
This occurs both with AdvancementInfo 1.17.1-fabric0.36.1-1.2.1 and 1.17.1-fabric0.36.1-1.3. Note that this does not occur if the search text is not a subset of the word
enable
(for which the empty search matches all includingenable
).Edit: After looking in the log, the crash occurs during handling of the advancement
armor_statues:enable
. The offending data pack is attached here: armor statues v2.8.1.zipThe crash most likely occurs here: https://github.com/gbl/AdvancementInfo/blob/e24a027f7daab08274328de70c46883259119e7b/src/main/java/de/guntram/mcmod/advancementinfo/AdvancementInfo.java#L123
Crash reports: crash-2021-12-04_23.21.41-client.txt crash-2021-12-04_23.24.54-client.txt