More fixes....maybe.
This commit is contained in:
parent
5eaea8ae5d
commit
a6b681feae
Binary file not shown.
@ -531,12 +531,11 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
|
|||||||
|
|
||||||
if (getServerTickTime()-LastClearStructureTime>=100) {
|
if (getServerTickTime()-LastClearStructureTime>=100) {
|
||||||
//Perform a clear of Monster Structure.
|
//Perform a clear of Monster Structure.
|
||||||
for (int i=0;i<monsterdata.size();i++) {
|
for(UUID id : monsterdata.keySet()) {
|
||||||
MonsterStructure mon = monsterdata.get(monsterdata.keySet().toArray()[i]);
|
MonsterStructure mon = monsterdata.get(id);
|
||||||
Monster m = mon.m;
|
Monster m = mon.m;
|
||||||
if (!m.isValid()) {
|
if (!m.isValid()) {
|
||||||
monsterdata.remove(monsterdata.keySet().toArray()[i]);
|
monsterdata.remove(id);
|
||||||
i--;
|
|
||||||
log("Removed one from Structure",5);
|
log("Removed one from Structure",5);
|
||||||
}
|
}
|
||||||
if (mon.isLeader) {
|
if (mon.isLeader) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user