SPIGOT-7911: Fix Location#isWorldLoaded() for re-loaded worlds

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2024-10-06 18:13:21 +11:00
parent 5f8dbb00f6
commit 68492a4f7e

View file

@ -82,7 +82,7 @@ public class Location implements Cloneable, ConfigurationSerializable {
}
World world = this.world.get();
return world != null && Bukkit.getWorld(world.getUID()) != null;
return world != null && world.equals(Bukkit.getWorld(world.getUID()));
}
/**