Jump to content

zeetillz

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by zeetillz

  1. What vanilla item has the id 3877? That's right, NOTHING. What is an item that is NOTHING? Why it's NULL. Congradulations, you have a NPE. OHHHHHHH, well that makes sense, doh, silly me. so if(item == null){ continue; } should fix the issue Thanks a bunch!
  2. Right ok, thanks for this, but the thing is I haven't added any items, and in theory I should just be looping through all the default items
  3. Hi, I am currently trying to iterate through Item.itemsList e.g Item[] allItems = Item.itemsList;; for (int i = 0; i < allItems.length; i++) { allItems[i].getStatName(); // to display in GUI // to display in config file } But overtime I do i get a java.lang.NullPointerException I know that allItems.getStatName(); is causing the issue since if I were to write to a config file, say, the value of 'i', within the loop, it works. Is there any way to fix this or are there any other alternatives (I am C# developer so not everything in Java is apparent to me) Thanks in advance.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.