mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2024-12-03 13:33:22 +01:00
Improved handling of unloadLater()
This commit is contained in:
parent
b5352a25d3
commit
42efaf4518
@ -217,6 +217,11 @@ public class SystemWorld {
|
|||||||
Bukkit.getScheduler().runTask(WorldSystem.getInstance(), () -> unloadLater(w));
|
Bukkit.getScheduler().runTask(WorldSystem.getInstance(), () -> unloadLater(w));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Do not start another unload task
|
||||||
|
if (unloading) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Preconditions.checkNotNull(w, "world must not be null");
|
Preconditions.checkNotNull(w, "world must not be null");
|
||||||
WorldUnloadEvent event = new WorldUnloadEvent(this);
|
WorldUnloadEvent event = new WorldUnloadEvent(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user