Posted May 14, 20169 yr I've written the code for the crop block, seed, and the item that the crop will drop when harvested. The game loads fine, but when I right click with the seed in hand, the game crashes. I've looked through my code for errors and have found none. If anyone can help me here, it would be greatly appreciated. Crash Report http://pastebin.com/ArEbBvLi Seed Code http://pastebin.com/wbWJRnm3 Crop Code http://pastebin.com/9LXwAm1e
May 14, 20169 yr Author I don't see where I've set it to null. The ModSeedClass is my base seed class. In my item registry is where I determine what each seed grows.
May 14, 20169 yr Author Here is the code in which I create the seeds and block for the plant http://pastebin.com/2DghfRiz
May 14, 20169 yr Author Item Class http://pastebin.com/z69cLzgE Block Class http://pastebin.com/RZb4xUyH Main Class http://pastebin.com/A9HdV4JW Common Proxy http://pastebin.com/J20s6p3q Client Proxy http://pastebin.com/P347smYz
May 14, 20169 yr You're calling ItemRegistry.registerItems before you call BlockRegistry.registerBlocks , so BlockRegistry.cornPlant is still null when you call the ModItemSeeds constructor. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
May 15, 20169 yr Author Switched around a couple lines of code in the common proxy and if fixed the problem. Thank you for your help.
May 15, 20169 yr You're calling ItemRegistry.registerItems before you call BlockRegistry.registerBlocks , so BlockRegistry.cornPlant is still null when you call the ModItemSeeds constructor. [me=Draco18s]saw thread title. Immediately knew this was the case.[/me] Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
May 15, 20169 yr [me=Draco18s]saw thread title. Immediately knew this was the case.[/me] Smartass I did, too, but I like to (at least try) to teach people the troubleshooting process. Oh sure, I'd have done the same. You just got to it before I opened the thread. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.