TwelveIterationMods / CookingForBlockheads

Minecraft Mod. Adds a cooking book and multiblock kitchens that only shows recipes you can make with what you currently have in your inventory.
https://mods.twelveiterations.com/mc/cooking-for-blockheads/
Other
80 stars 79 forks source link

ArrayIndexOutOfBoundsException when clicking on cooking table crashes server (1.18.2) #625

Closed MoonMoonShark closed 1 year ago

MoonMoonShark commented 1 year ago

Minecraft Version

1.18.x

Mod Loader

Forge

Mod Loader Version

40.1.84

Mod Version

cookingforblockheads-forge-1.18.2-12.2.0.jar

Describe the Issue

clicking on cooking table crashes the server

Logs

https://pastebin.com/55TcAGfX

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

this mod is being used in https://www.curseforge.com/minecraft/modpacks/the-lighthouse on a private, community server. i would be honored to invite you to our server, or work with you to troubleshoot this issue.

MoonMoonShark commented 1 year ago

i was fiddling with it more yesterday. i can place the table singularly and it works. i can place it with empty cupboards, and it works. i can put basic stuff into the cuboards, and it still works. so i suspect there's something specific about what the users on my server have IN their cupboards, so i'm going to try taking everything apart and rebuilding it at their locations.

MoonMoonShark commented 1 year ago

i removed everything from the cupboards and started putting things back. it broke when i got to kelp. so i took out the kelp and tried other things. then i realized it didn't break when i got to kelp, it broke when i had more than a half full cupboard! i have the cupboards set to full sized, so it was crashing when it contained more than a small chest worth of contents.

so then i thought maybe i'd delete the config file and rebuild it, in case there was something wonky about the cupboards, only to discover that on the server, the config file was set to "largeCounters = false" even though it was SHOWING full sized cupboards!

so i've turned off the server, changed the config, and now i'm going to start it back up again. we'll see if that fixes it.

MoonMoonShark commented 1 year ago

yup. that fixed it. dang, i feel dumb. this is what i get for trying to troubleshoot with a migraine for a month...