Better Recipe Books (+ Smithing Tables, Brewing Stands)

Better Recipe Books (+ Smithing Tables, Brewing Stands)

751k Downloads

[Bug]: Network Protocol Error when interacting with Smithing Table

iistylerr opened this issue ยท 0 comments

commented

What happened?

Im receiving Network Protocol Error when interacting with Smithing Table on my single player world.

Modloader

Fabric (Default)

Minecraft Version

1.21

Mod Version

1.10.0-rc5+1.21

Relevant log output

Description: Packet handling error

java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
	at marsh.town.brb.recipe.BRBSmithingRecipe.id(BRBSmithingRecipe.java:65)
	at marsh.town.brb.generic.GenericRecipeBookCollection.has(GenericRecipeBookCollection.java:32)
	at marsh.town.brb.PinnedRecipeManager.has(PinnedRecipeManager.java:102)
	at marsh.town.brb.interfaces.IPinningComponent.betterRecipeBook$sortByPinsInPlace(IPinningComponent.java:15)
	at marsh.town.brb.generic.GenericRecipeBookComponent.updateCollections(GenericRecipeBookComponent.java:265)
	at marsh.town.brb.generic.GenericRecipeBookComponent.initVisuals(GenericRecipeBookComponent.java:140)
	at marsh.town.brb.smithingtable.SmithingRecipeBookComponent.init(SmithingRecipeBookComponent.java:39)
	at net.minecraft.class_4895.handler$bbc002$brb$init(class_4895.java:546)
	at net.minecraft.class_4895.method_25445(class_4895.java:72)
	at net.minecraft.class_4894.method_25426(class_4894.java:26)
	at net.minecraft.class_437.method_25423(class_437.java:309)
	at net.minecraft.class_310.method_1507(class_310.java:1143)
	at net.minecraft.class_3929$class_3930.method_17543(class_3929.java:61)
	at net.minecraft.class_3929.method_17541(class_3929.java:47)
	at net.minecraft.class_634.method_17587(class_634.java:1226)
	at net.minecraft.class_3944.method_17591(class_3944.java:38)
	at net.minecraft.class_3944.method_11054(class_3944.java:13)
	at net.minecraft.class_2600.method_11072(class_2600.java:27)
	at net.minecraft.class_1255.method_18859(class_1255.java:162)
	at net.minecraft.class_4093.method_18859(class_4093.java:23)
	at net.minecraft.class_1255.method_16075(class_1255.java:136)
	at net.minecraft.class_1255.method_5383(class_1255.java:121)
	at net.minecraft.class_310.method_1523(class_310.java:1240)
	at net.minecraft.class_310.method_1514(class_310.java:882)
	at net.minecraft.client.main.Main.main(Main.java:256)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:100)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
	at marsh.town.brb.recipe.BRBSmithingRecipe.id(BRBSmithingRecipe.java:65)
	at marsh.town.brb.generic.GenericRecipeBookCollection.has(GenericRecipeBookCollection.java:32)
	at marsh.town.brb.PinnedRecipeManager.has(PinnedRecipeManager.java:102)
	at marsh.town.brb.interfaces.IPinningComponent.betterRecipeBook$sortByPinsInPlace(IPinningComponent.java:15)
	at marsh.town.brb.generic.GenericRecipeBookComponent.updateCollections(GenericRecipeBookComponent.java:265)
	at marsh.town.brb.generic.GenericRecipeBookComponent.initVisuals(GenericRecipeBookComponent.java:140)
	at marsh.town.brb.smithingtable.SmithingRecipeBookComponent.init(SmithingRecipeBookComponent.java:39)
	at net.minecraft.class_4895.handler$bbc002$brb$init(class_4895.java:546)
	at net.minecraft.class_4895.method_25445(class_4895.java:72)
	at net.minecraft.class_4894.method_25426(class_4894.java:26)
	at net.minecraft.class_437.method_25423(class_437.java:309)
	at net.minecraft.class_310.method_1507(class_310.java:1143)
	at net.minecraft.class_3929$class_3930.method_17543(class_3929.java:61)
	at net.minecraft.class_3929.method_17541(class_3929.java:47)

-- Incoming Packet --
Details:
	Type: clientbound/minecraft:open_screen
	Is Terminal: false
	Is Skippable: false
Stacktrace:
	at net.minecraft.class_2600.method_59803(class_2600.java:56)
	at net.minecraft.class_8673.method_60882(class_8673.java:136)
	at net.minecraft.class_8673.method_59807(class_8673.java:113)
	at net.minecraft.class_2600.method_11072(class_2600.java:32)
	at net.minecraft.class_1255.method_18859(class_1255.java:162)
	at net.minecraft.class_4093.method_18859(class_4093.java:23)
	at net.minecraft.class_1255.method_16075(class_1255.java:136)
	at net.minecraft.class_1255.method_5383(class_1255.java:121)
	at net.minecraft.class_310.method_1523(class_310.java:1240)
	at net.minecraft.class_310.method_1514(class_310.java:882)
	at net.minecraft.client.main.Main.main(Main.java:256)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:100)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)