You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue occurs when another mod (computercraft in this case) evaluates creative tab contents serverside. This is legal for other mods to do, so mods need to be careful about using client code while populating their creative tabs.
You can use displayParams.holders() to get a HolderLookup.Provider, which is a view over the registries, averting the need to get registries from the client level, and allowing your tab to be functional when mods try to check its contents serverside.
The text was updated successfully, but these errors were encountered:
Log:
https://api.mclo.gs/1/raw/FqZSPtI
This issue occurs when another mod (computercraft in this case) evaluates creative tab contents serverside. This is legal for other mods to do, so mods need to be careful about using client code while populating their creative tabs.
Cause of the issue is here https://github.com/TheGridExpert/VampiresDelight/blob/1.21/src/main/java/net/grid/vampiresdelight/common/item/WeatheredLetterItem.java#L49-L58
Referring to net.minecraft.client classes is unsafe from within Item classes in any case, even setting aside the creative tab issue.
However, the client classes shouldn't be needed here. Observe the creative tab builder:
https://github.com/TheGridExpert/VampiresDelight/blob/1.21/src/main/java/net/grid/vampiresdelight/common/registry/VDCreativeTabs.java
You can use displayParams.holders() to get a HolderLookup.Provider, which is a view over the registries, averting the need to get registries from the client level, and allowing your tab to be functional when mods try to check its contents serverside.
The text was updated successfully, but these errors were encountered: