elucent / GravelOres

Simple gravel ores for 1.11.2
2 stars 4 forks source link

LoaderExceptionModCrash: Stack can not be invalid #3

Closed OrdinatorStouff closed 7 years ago

OrdinatorStouff commented 7 years ago

OreDict errors crashing on startup. I'm about 75% convinced it's because of some other mod interaction but I'm having a hard time tracking it down. I don't know if this is something can be escaped from being caught in gravelores though.

net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Gravel Ores (gravelores)
Caused by: java.lang.IllegalArgumentException: Stack can not be invalid!
    at net.minecraftforge.oredict.OreDictionary.getOreIDs(OreDictionary.java:440)
    at elucent.gravelores.GravelOres.registerRecipes(GravelOres.java:155)

https://pastebin.com/bYkUeS0M

elucent commented 7 years ago

Added a check, hopefully this will not happen again.

It should only happen in the first place, though, if someone registers a smelting recipe with an empty input. Which shouldn't happen.

Regardless, it'll be fixed in the next version, which will be for MC 1.12.