Waystones (Fabric Edition)

Waystones (Fabric Edition)

4M Downloads

WaystoneRecipe is broken from perspective of JEI

zjedi opened this issue ยท 2 comments

commented

Minecraft Version

1.20.4

Mod Loader

NeoForge

Mod Loader Version

20.4.200

Mod Version

waystones-neoforge-1.20.4-16.0.3.jar

Balm Version

balm-neoforge-1.20.4-9.0.5.jar

Describe the Issue

There is IndexOutOfBoundsException in logs, saying that WaystoneRecipe is broken from perspective of JEI. Would be nice to fix that.

[16Mar2024 21:20:07.231] [Render thread/INFO] [mezz.jei.library.load.PluginCallerTimerRunnable/]: Registering recipes: jei:minecraft took 659.1 milliseconds
[16Mar2024 21:20:07.235] [Render thread/ERROR] [mezz.jei.library.util.IngredientSupplierHelper/]: Found a broken recipe, failed to setRecipe with RecipeLayoutBuilder: net.blay09.mods.waystones.recipe.WaystoneRecipe@6113c05b

java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1
	at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?]
	at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?]
	at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) ~[?:?]
	at java.util.Objects.checkIndex(Objects.java:361) ~[?:?]
	at java.util.ArrayList.get(ArrayList.java:427) ~[?:?]
	at net.minecraft.core.NonNullList.get(NonNullList.java:66) ~[client-1.20.4-20231207.154220-srg.jar%23233!/:?]
	at net.blay09.mods.waystones.compat.jei.WaystoneJeiRecipeCategory.setRecipe(WaystoneJeiRecipeCategory.java:59) ~[waystones-neoforge-1.20.4-16.0.3.jar%23230!/:16.0.3]
	at net.blay09.mods.waystones.compat.jei.WaystoneJeiRecipeCategory.setRecipe(WaystoneJeiRecipeCategory.java:18) ~[waystones-neoforge-1.20.4-16.0.3.jar%23230!/:16.0.3]
	at mezz.jei.library.util.IngredientSupplierHelper.getIngredientSupplier(IngredientSupplierHelper.java:25) ~[jei-1.20.4-neoforge-17.3.0.49.jar%23222!/:17.3.0.49]
	at mezz.jei.library.recipes.RecipeManagerInternal.addRecipe(RecipeManagerInternal.java:137) ~[jei-1.20.4-neoforge-17.3.0.49.jar%23222!/:17.3.0.49]
	at mezz.jei.library.recipes.RecipeManagerInternal.lambda$addRecipes$0(RecipeManagerInternal.java:112) ~[jei-1.20.4-neoforge-17.3.0.49.jar%23222!/:17.3.0.49]
	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:113) ~[jei-1.20.4-neoforge-17.3.0.49.jar%23222!/:17.3.0.49]
	at mezz.jei.library.load.registration.RecipeRegistration.addRecipes(RecipeRegistration.java:64) ~[jei-1.20.4-neoforge-17.3.0.49.jar%23222!/:17.3.0.49]
	at net.blay09.mods.waystones.compat.jei.JEIAddon.registerRecipes(JEIAddon.java:24) ~[waystones-neoforge-1.20.4-16.0.3.jar%23230!/:16.0.3]
	at mezz.jei.library.load.PluginLoader.lambda$createRecipeManager$11(PluginLoader.java:152) ~[jei-1.20.4-neoforge-17.3.0.49.jar%23222!/:17.3.0.49]
	at mezz.jei.library.load.PluginCaller.callOnPlugins(PluginCaller.java:27) ~[jei-1.20.4-neoforge-17.3.0.49.jar%23222!/:17.3.0.49]
	at mezz.jei.library.load.PluginLoader.createRecipeManager(PluginLoader.java:152) ~[jei-1.20.4-neoforge-17.3.0.49.jar%23222!/:17.3.0.49]
	at mezz.jei.library.startup.JeiStarter.start(JeiStarter.java:132) ~[jei-1.20.4-neoforge-17.3.0.49.jar%23222!/:17.3.0.49]
	at mezz.jei.neoforge.startup.StartEventObserver.transitionState(StartEventObserver.java:155) ~[jei-1.20.4-neoforge-17.3.0.49.jar%23222!/:17.3.0.49]
	at mezz.jei.neoforge.startup.StartEventObserver.onEvent(StartEventObserver.java:105) ~[jei-1.20.4-neoforge-17.3.0.49.jar%23222!/:17.3.0.49]
	at net.neoforged.bus.ConsumerEventHandler.invoke(ConsumerEventHandler.java:26) ~[bus-7.2.0.jar%23104!/:?]
	at net.neoforged.bus.EventBus.post(EventBus.java:386) ~[bus-7.2.0.jar%23104!/:?]
	at net.neoforged.bus.EventBus.post(EventBus.java:351) ~[bus-7.2.0.jar%23104!/:?]
	at net.neoforged.neoforge.client.ClientHooks.onRecipesUpdated(ClientHooks.java:640) ~[neoforge-20.4.200-universal.jar%23234!/:?]
	at net.minecraft.client.multiplayer.ClientPacketListener.handleUpdateRecipes(ClientPacketListener.java:1475) ~[client-1.20.4-20231207.154220-srg.jar%23233!/:?]
	at net.minecraft.network.protocol.game.ClientboundUpdateRecipesPacket.handle(ClientboundUpdateRecipesPacket.java:33) ~[client-1.20.4-20231207.154220-srg.jar%23233!/:?]
	at net.minecraft.network.protocol.game.ClientboundUpdateRecipesPacket.handle(ClientboundUpdateRecipesPacket.java:15) ~[client-1.20.4-20231207.154220-srg.jar%23233!/:?]
	at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:24) ~[client-1.20.4-20231207.154220-srg.jar%23233!/:?]
	at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:146) ~[client-1.20.4-20231207.154220-srg.jar%23233!/:?]
	at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:23) ~[client-1.20.4-20231207.154220-srg.jar%23233!/:?]
	at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:120) ~[client-1.20.4-20231207.154220-srg.jar%23233!/:?]
	at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:109) ~[client-1.20.4-20231207.154220-srg.jar%23233!/:?]
	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1223) ~[client-1.20.4-20231207.154220-srg.jar%23233!/:?]
	at net.minecraft.client.Minecraft.run(Minecraft.java:818) ~[client-1.20.4-20231207.154220-srg.jar%23233!/:?]
	at net.minecraft.client.main.Main.main(Main.java:244) ~[neoforge-20.4.200.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.neoforged.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:136) ~[loader-2.0.17.jar:2.0]
	at net.neoforged.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:124) ~[loader-2.0.17.jar:2.0]
	at net.neoforged.fml.loading.targets.CommonClientLaunchHandler.runService(CommonClientLaunchHandler.java:24) ~[loader-2.0.17.jar:2.0]
	at net.neoforged.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:118) ~[loader-2.0.17.jar:2.0]
	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:?]

Logs

No response

Do you use any performance-enhancing mods (e.g. OptiFine) or custom server distributions (e.g. SpongeForge)?

No response

commented

Fabric on MC 1.20.4 Waystones 16.0.4
No Optifine but many other mods.

[10:48:32] [Render thread/ERROR]: Found a broken recipe, failed to setRecipe with RecipeLayoutBuilder: net.blay09.mods.waystones.recipe.WaystoneRecipe@2eafcc21

java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1
at jdk.internal.util.Preconditions.outOfBounds(Unknown Source) ~[?:?]
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source) ~[?:?]
at jdk.internal.util.Preconditions.checkIndex(Unknown Source) ~[?:?]
at java.util.Objects.checkIndex(Unknown Source) ~[?:?]
at java.util.ArrayList.get(Unknown Source) ~[?:?]
at net.minecraft.class_2371.get(class_2371.java:47) ~[client-intermediary.jar:?]
at net.blay09.mods.waystones.compat.jei.WaystoneJeiRecipeCategory.setRecipe(WaystoneJeiRecipeCategory.java:59) ~[waystones-fabric-1.20.4-16.0.4.jar:?]
at net.blay09.mods.waystones.compat.jei.WaystoneJeiRecipeCategory.setRecipe(WaystoneJeiRecipeCategory.java:18) ~[waystones-fabric-1.20.4-16.0.4.jar:?]
at mezz.jei.library.util.IngredientSupplierHelper.getIngredientSupplier(IngredientSupplierHelper.java:25) ~[jei-1.20.4-fabric-17.3.0.49.jar:?]
at mezz.jei.library.recipes.RecipeManagerInternal.addRecipe(RecipeManagerInternal.java:137) ~[jei-1.20.4-fabric-17.3.0.49.jar:?]
at mezz.jei.library.recipes.RecipeManagerInternal.lambda$addRecipes$0(RecipeManagerInternal.java:112) ~[jei-1.20.4-fabric-17.3.0.49.jar:?]
at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[?:?]
at java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:?]
at java.util.stream.AbstractPipeline.evaluateToArrayNode(Unknown Source) ~[?:?]
at java.util.stream.ReferencePipeline.toArray(Unknown Source) ~[?:?]
at java.util.stream.ReferencePipeline.toArray(Unknown Source) ~[?:?]
at java.util.stream.ReferencePipeline.toList(Unknown Source) ~[?:?]
at mezz.jei.library.recipes.RecipeManagerInternal.addRecipes(RecipeManagerInternal.java:113) ~[jei-1.20.4-fabric-17.3.0.49.jar:?]
at mezz.jei.library.load.registration.RecipeRegistration.addRecipes(RecipeRegistration.java:64) ~[jei-1.20.4-fabric-17.3.0.49.jar:?]
at net.blay09.mods.waystones.compat.jei.JEIAddon.registerRecipes(JEIAddon.java:24) ~[waystones-fabric-1.20.4-16.0.4.jar:?]
at mezz.jei.library.load.PluginLoader.lambda$createRecipeManager$11(PluginLoader.java:152) ~[jei-1.20.4-fabric-17.3.0.49.jar:?]
at mezz.jei.library.load.PluginCaller.callOnPlugins(PluginCaller.java:27) ~[jei-1.20.4-fabric-17.3.0.49.jar:?]
at mezz.jei.library.load.PluginLoader.createRecipeManager(PluginLoader.java:152) ~[jei-1.20.4-fabric-17.3.0.49.jar:?]
at mezz.jei.library.startup.JeiStarter.start(JeiStarter.java:132) ~[jei-1.20.4-fabric-17.3.0.49.jar:?]
at mezz.jei.fabric.startup.ClientLifecycleHandler.startJei(ClientLifecycleHandler.java:84) ~[jei-1.20.4-fabric-17.3.0.49.jar:?]
at mezz.jei.fabric.startup.ClientLifecycleHandler.lambda$registerEvents$1(ClientLifecycleHandler.java:53) ~[jei-1.20.4-fabric-17.3.0.49.jar:?]
at mezz.jei.fabric.events.JeiLifecycleEvents.lambda$static$4(JeiLifecycleEvents.java:28) ~[jei-1.20.4-fabric-17.3.0.49.jar:?]
at net.minecraft.class_634.handler$bla003$jei$handleUpdateRecipes(class_634.java:6443) ~[client-intermediary.jar:?]
at net.minecraft.class_634.method_11106(class_634.java:1442) ~[client-intermediary.jar:?]
at net.minecraft.class_2788.method_11997(class_2788.java:33) ~[client-intermediary.jar:?]
at net.minecraft.class_2788.method_11054(class_2788.java:15) ~[client-intermediary.jar:?]
at net.minecraft.class_2600.method_11072(class_2600.java:24) ~[client-intermediary.jar:?]
at net.minecraft.class_1255.method_18859(class_1255.java:156) ~[client-intermediary.jar:?]
at net.minecraft.class_4093.method_18859(class_4093.java:23) ~[client-intermediary.jar:?]
at net.minecraft.class_1255.method_16075(class_1255.java:130) ~[client-intermediary.jar:?]
at net.minecraft.class_1255.method_5383(class_1255.java:115) ~[client-intermediary.jar:?]
at net.minecraft.class_310.method_1523(class_310.java:1283) ~[client-intermediary.jar:?]
at net.minecraft.class_310.method_1514(class_310.java:888) ~[client-intermediary.jar:?]
at net.minecraft.client.main.Main.main(Main.java:265) ~[1.20.4-0.15.6.jar:?]
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) ~[fabric-loader-0.15.6.jar:?]
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) ~[fabric-loader-0.15.6.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) ~[fabric-loader-0.15.6.jar:?]

commented

FYI, I don't use Optifine etc.