Ars Nouveau

Ars Nouveau

49M Downloads

Errors with dyes

Siemon-Verreyken opened this issue ยท 0 comments

commented

There seems to be an issue with the animated armor, where the dye color is being accessed while it isn't initialized yet.
It happens with all the animated armor pieces and some dyes, seen logs from all kinds of dye items:

dye_arcanist_boots
dye_battlemage_leggings
dye_archmage_spell_book
dye_sorcerer_boots
...

Versions:
ars_nouveau-1.20.1-4.2.4-all.jar
Forge - 47.1.44
Minecraft 1.20.1

DUMP/LOG:
[Render thread/ERROR]: Found a broken recipe, failed to setRecipe with RecipeLayoutBuilder: Ars Nouveau ars_nouveau:dye_arcanist_boots class com.hollingsworth.arsnouveau.common.crafting.recipes.DyeRecipe

java.lang.NullPointerException: Cannot invoke "net.minecraft.world.item.DyeColor.m_41060_()" because "dyeColor" is null at com.hollingsworth.arsnouveau.common.crafting.recipes.IDyeable.onDye(IDyeable.java:8) ~[ars_nouveau-1.20.1-4.2.4-all.jar%23591!/:4.2.4] at com.hollingsworth.arsnouveau.client.jei.DyeRecipeCategory.setRecipe(DyeRecipeCategory.java:44) ~[ars_nouveau-1.20.1-4.2.4-all.jar%23591!/:4.2.4] at mezz.jei.library.plugins.vanilla.crafting.CraftingRecipeCategory.setRecipe(CraftingRecipeCategory.java:71) ~[jei-1.20.1-forge-15.2.0.25.jar%23777!/:15.2.0.25] at mezz.jei.library.plugins.vanilla.crafting.CraftingRecipeCategory.setRecipe(CraftingRecipeCategory.java:30) ~[jei-1.20.1-forge-15.2.0.25.jar%23777!/:15.2.0.25] at mezz.jei.library.util.IngredientSupplierHelper.getIngredientSupplier(IngredientSupplierHelper.java:22) ~[jei-1.20.1-forge-15.2.0.25.jar%23777!/:15.2.0.25] at mezz.jei.library.recipes.RecipeManagerInternal.lambda$addRecipes$0(RecipeManagerInternal.java:120) ~[jei-1.20.1-forge-15.2.0.25.jar%23777!/:15.2.0.25] at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178) ~[?:?] at java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:720) ~[?:?] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) ~[?:?] at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) ~[?:?] at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) ~[?:?] at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) ~[?:?] at java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) ~[?:?] at mezz.jei.library.recipes.RecipeManagerInternal.addRecipes(RecipeManagerInternal.java:126) ~[jei-1.20.1-forge-15.2.0.25.jar%23777!/:15.2.0.25] at mezz.jei.library.recipes.RecipeManagerInternal.addRecipes(RecipeManagerInternal.java:108) ~[jei-1.20.1-forge-15.2.0.25.jar%23777!/:15.2.0.25] at mezz.jei.library.load.registration.RecipeRegistration.addRecipes(RecipeRegistration.java:64) ~[jei-1.20.1-forge-15.2.0.25.jar%23777!/:15.2.0.25] at com.lothrazar.cyclic.compat.jei.CyclicPluginJEI.registerRecipes(CyclicPluginJEI.java:89) ~[Cyclic-1.20.1-1.12.2.jar%23677!/:1.20.1-1.12.2] at mezz.jei.library.load.PluginLoader.lambda$createRecipeManager$10(PluginLoader.java:144) ~[jei-1.20.1-forge-15.2.0.25.jar%23777!/:15.2.0.25] at mezz.jei.library.load.PluginCaller.callOnPlugins(PluginCaller.java:27) ~[jei-1.20.1-forge-15.2.0.25.jar%23777!/:15.2.0.25] at mezz.jei.library.load.PluginLoader.createRecipeManager(PluginLoader.java:144) ~[jei-1.20.1-forge-15.2.0.25.jar%23777!/:15.2.0.25] at mezz.jei.library.startup.JeiStarter.start(JeiStarter.java:132) ~[jei-1.20.1-forge-15.2.0.25.jar%23777!/:15.2.0.25] at mezz.jei.forge.startup.StartEventObserver.transitionState(StartEventObserver.java:137) ~[jei-1.20.1-forge-15.2.0.25.jar%23777!/:15.2.0.25] at mezz.jei.forge.startup.StartEventObserver.lambda$register$3(StartEventObserver.java:78) ~[jei-1.20.1-forge-15.2.0.25.jar%23777!/:15.2.0.25] at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:260) ~[eventbus-6.0.5.jar%2387!/:?] at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:252) ~[eventbus-6.0.5.jar%2387!/:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) ~[eventbus-6.0.5.jar%2387!/:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) ~[eventbus-6.0.5.jar%2387!/:?] at net.minecraft.client.gui.screens.Screen.m_6575_(Screen.java:320) ~[client-1.20.1-20230612.114412-srg.jar%23964!/:?] at net.minecraft.client.Minecraft.m_91152_(Minecraft.java:1007) ~[client-1.20.1-20230612.114412-srg.jar%23964!/:?] at net.minecraft.client.Minecraft.m_91279_(Minecraft.java:1928) ~[client-1.20.1-20230612.114412-srg.jar%23964!/:?] at net.minecraft.client.Minecraft.m_91398_(Minecraft.java:1795) ~[client-1.20.1-20230612.114412-srg.jar%23964!/:?] at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1112) ~[client-1.20.1-20230612.114412-srg.jar%23964!/:?] at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:718) ~[client-1.20.1-20230612.114412-srg.jar%23964!/:?] at net.minecraft.client.main.Main.main(Main.java:218) ~[forge-47.1.44.jar:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111) ~[fmlloader-1.20.1-47.1.44.jar:?] at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:99) ~[fmlloader-1.20.1-47.1.44.jar:?] at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$makeService$0(CommonClientLaunchHandler.java:25) ~[fmlloader-1.20.1-47.1.44.jar:?] at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar:?] at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar:?] at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar:?] at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar:?] at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar:?] at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?]