mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 23:22:10 -07:00
SPIGOT-7911: Fix Location#isWorldLoaded() for re-loaded worlds
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user