mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 15:49:00 +01:00
SPIGOT-7911: Fix Location#isWorldLoaded() for re-loaded worlds
By: md_5 <git@md-5.net>
This commit is contained in:
parent
5f8dbb00f6
commit
68492a4f7e
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ public class Location implements Cloneable, ConfigurationSerializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
World world = this.world.get();
|
World world = this.world.get();
|
||||||
return world != null && Bukkit.getWorld(world.getUID()) != null;
|
return world != null && world.equals(Bukkit.getWorld(world.getUID()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue