|
Please help out
Array out of bounds. Show us lines code 2057 - 2380
Why is that happening?
Well often arrays aren't checked to see if they are "within" range of the array ex: you have an array with a length of 5 (String[] str = {"this", "is", "a", "simple", "line"}
You want to get the "line" part of the String[] str, so you type return str[5]; well that's out of bounds, why? because an array always starts at 0 and upwards (Yes 0 is a number). So you would count like this: 0, 1, 2, 3, 4 (5 numbers right?)
That's most-likely what this problem is.
The lines:
Server.itemHandler.createGroundItem(c, NPCDrops.normalDrops.get(npcs[i].npcType)[random][0], npcs[i].absX, npcs[i].absY, NPCDrops.normalDrops.get(npcs[i].npcType)[random][1], c.playerId);I am getting this error after i killed an barrow brotherdropItems(i); // npc drops items!
It's having problems trying to create a drop for the Barrows Brothers. Did you recently add anything to any of their drops?
nope never editted barrows
bump
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |