So ive got a basic code that is throwing the following error :- java.lang.ArrayIndexOutOfBoundsEception
Apparently The getIndexs array is too small to support 19 indexes and im not sure how to fix it.
This is only a code snippet but you can see the return (lastArchiveId * 256 + Cache.STORE.getIndexes()[19] where the issue crops up
Code://22314
public static final int getItemDefinitionsSize() {
int lastArchiveId = Cache.STORE.getIndexes()[19].getLastArchiveId();
return (lastArchiveId * 256 + Cache.STORE.getIndexes()[19]
.getValidFilesCount(lastArchiveId)) - 22314;
}
public static boolean itemExists(int id) {
if(id >= getItemDefinitionsSize()) //setted because of custom items
return false;
return Cache.STORE.getIndexes()[19].fileExists(id >>> 8, 0xff & id);
}

