Another fix for ConcurrentModificationException.

dev
sigonasr2 9 years ago
parent a6b681feae
commit 41cbe5250f
  1. BIN
      TwosideKeeper.jar
  2. 7
      src/sig/plugin/TwosideKeeper/TwosideKeeper.java

Binary file not shown.

@ -535,8 +535,11 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
MonsterStructure mon = monsterdata.get(id);
Monster m = mon.m;
if (!m.isValid()) {
monsterdata.remove(id);
log("Removed one from Structure",5);
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin,
() -> {
monsterdata.remove(id);
log("Removed one from Structure",5);
}, 1);
}
if (mon.isLeader) {
//Make it glow red.

Loading…
Cancel
Save