Okay, i went testing the ladders in lumby, and when i clicked on them this error came up in cmd, but i still moved up or down...
Code:
java.util.ConcurrentModificationException
at java.util.LinkedList$ListItr.checkForComodification(Unknown Source)
at java.util.LinkedList$ListItr.remove(Unknown Source)
at com.rs2.model.World.process(World.java:52)
at com.rs2.Server.cycle(Server.java:205)
at com.rs2.Server.run(Server.java:118)
at java.lang.Thread.run(Unknown Source)
World.java (red line is line 52)
Code:
public static void process() throws Exception {
Iterator<Tick> tickIt$ = tickManager.getTickables().iterator();
while(tickIt$.hasNext()) {
Tick t = tickIt$.next();
t.cycle();
if(!t.isRunning()) {
tickIt$.remove();
}
}
// Perform any logic processing for players.
for (int i = 0; i < players.length; i++) {
Player player = players[i];
if (player == null) {
continue;
}
try {
player.process();
} catch (Exception ex) {
ex.printStackTrace();
player.disconnect();
}
}
// Perform any logic processing for NPCs.
for (int i = 0; i < npcs.length; i++) {
Npc npc = npcs[i];
if (npc == null) {
continue;
}
try {
npc.process();
} catch (Exception ex) {
ex.printStackTrace();
unregister(npc);
}
}
// Update all players.
for (int i = 0; i < players.length; i++) {
Player player = players[i];
if (player == null) {
continue;
}
try {
PlayerUpdating.update(player);
NpcUpdating.update(player);
} catch (Exception ex) {
ex.printStackTrace();
player.disconnect();
}
}
// Reset all players after cycle.
for (int i = 0; i < players.length; i++) {
Player player = players[i];
if (player == null) {
continue;
}
try {
player.reset();
} catch (Exception ex) {
ex.printStackTrace();
player.disconnect();
}
}
// Reset all npcs after cycle.
for (int i = 0; i < npcs.length; i++) {
Npc npc = npcs[i];
if (npc == null) {
continue;
}
try {
npc.reset();
} catch (Exception ex) {
ex.printStackTrace();
unregister(npc);
}
}
ItemManager.getInstance().tick();
}