Another fix for ConcurrentModificationException.
This commit is contained in:
parent
a6b681feae
commit
41cbe5250f
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…
x
Reference in New Issue
Block a user