TehHaloTree
Members-
Posts
5 -
Joined
-
Last visited
Everything posted by TehHaloTree
-
[1.6.4]NullPointerException When Loading Shaped Recipe
TehHaloTree replied to TehHaloTree's topic in Modder Support
*bump* -
[1.6.4]NullPointerException When Loading Shaped Recipe
TehHaloTree replied to TehHaloTree's topic in Modder Support
I changed the preinit to FMLPreInitializationEvent and it still crashes with the same crash. I examined it a little more, and I think the things throwing the NullPointerExceptio are the items being called from the other mods. I do not know if I called them correctly, if they need to be moved to a different section of code, or if they aren't being place into the recipe code correctly. Thanks, ~TehHaloTree EDIT: Moved recipes into the CraftHandler.java class, no difference. Here's the class: -
[1.6.4]NullPointerException When Loading Shaped Recipe
TehHaloTree replied to TehHaloTree's topic in Modder Support
I put all of my block initialization and registry into preinit and no errors in eclipse. When I startup I get the same crash. Looking at the console when it crashes, it seems to be happening at line 315: Here's the redone class. Sorry if I'm not understanding something, this is the first time I am using a recipe that uses items from separate mods. Thanks again, ~TehHaloTree -
[1.6.4]NullPointerException When Loading Shaped Recipe
TehHaloTree replied to TehHaloTree's topic in Modder Support
First of all, I get an error on "RegisterShapedRecipe". This is the line of code I'm using when it errors. Second, the items being used in the original recipe are not from my mod and are being called from other sources (ie. Ic2 API and OreDict). Thus, whenever I type them in as "new ItemStack(<insert Item name>) it errors as I do not know if I should call them separately in the mod file or call them right within that recipe. Thanks, ~TehHaloTree -
Hey guys, I recently tried out a shaped crafting recipe and I get a crash Here's my Main mod class: Any help appreciated, thanks in advance, ~TehHaloTree