[PI] Error - Exception in "main" java.lang.ExceptionInInitializerError
[Unresolved]
So I was modifying the item stats of a few things on my PI based server, in item.cfg
but this isn't a compile error, this only occurs when i RUN the server
Code:
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.ArrayIndexOutOfBoundsException: 6
at server.world.ItemHandler.loadItemList(ItemHandler.java:365)
at server.world.ItemHandler.<init>(ItemHandler.java:33)
at server.Server.<clinit>(Server.java:62)
Could not find the main class: server.Server. Program will exit.
Press any key to continue . . .
These are the lines defined if you are curious...
In ItemHandler.java,
Line 33:
Code:
loadItemList("item.cfg");
Line 365:
Code:
Bonuses[i] = Integer.parseInt(token3[(6 + i)]);
In Server.java,
Line 62:
Code:
public static ItemHandler itemHandler = new ItemHandler();
Sorry if this is a dumb error, but I haven't encountered anything like this before.
Thank you for helping :]