From 68492a4f7e2900f18f6defe803bcec5205957d3d Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 6 Oct 2024 18:13:21 +1100 Subject: [PATCH] SPIGOT-7911: Fix Location#isWorldLoaded() for re-loaded worlds By: md_5 --- paper-api/src/main/java/org/bukkit/Location.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/Location.java b/paper-api/src/main/java/org/bukkit/Location.java index 7c4db05147..734054f1e8 100644 --- a/paper-api/src/main/java/org/bukkit/Location.java +++ b/paper-api/src/main/java/org/bukkit/Location.java @@ -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())); } /**