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);
|
MonsterStructure mon = monsterdata.get(id);
|
||||||
Monster m = mon.m;
|
Monster m = mon.m;
|
||||||
if (!m.isValid()) {
|
if (!m.isValid()) {
|
||||||
monsterdata.remove(id);
|
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin,
|
||||||
log("Removed one from Structure",5);
|
() -> {
|
||||||
|
monsterdata.remove(id);
|
||||||
|
log("Removed one from Structure",5);
|
||||||
|
}, 1);
|
||||||
}
|
}
|
||||||
if (mon.isLeader) {
|
if (mon.isLeader) {
|
||||||
//Make it glow red.
|
//Make it glow red.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user