Trinkets Compat Layer for Accessories

Trinkets Compat Layer for Accessories

3M Downloads

[1.20.1 Forge] - Unable to get the needed Client Level for CCLayer

sfiomn opened this issue ยท 2 comments

commented

Hello there,

I'm the dev of https://www.curseforge.com/minecraft/mc-mods/legendary-survival-overhaul

And someone on discord found an incompatibility with Accessories.
Here is the stacktrace:
https://mclo.gs/QS8sy1t

Issue relies here:
https://github.com/wisp-forest/accessories/blob/1.20.1-Backport/cclayer/src/main/java/top/theillusivec4/curios/mixin/CuriosImplMixinHooks.java

And is triggered when calling "getItemStackSlots", from "isCuriosItem()" method here:
https://github.com/sfiomn/LegendarySurvivalOverhaul/blob/1.20.1/src/main/java/sfiomn/legendarysurvivaloverhaul/common/integration/curios/CuriosUtil.java

Is it something you could fix on your side ?

Thanks for the help

commented

The problem is either the fact that the level has yet to be set on the client when the code is ran (Seems likely based on the stack trace of data loading of a recipe) or that for some reason the level supplier to work around issues between Curios and Accessories API. This issue is resolved in later versions of accessories for 1.21.1 and up. 1.20.1 has been frozen and support for such only happens with issues that are massively pressing as supporting such a version with modern versions of Minecraft is time I do not have at the moment and the difference in API makes backporting quite difficult.

commented

Ok ok, I'll tell the player the incompatibility can't be fixed then, no problem