mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-01 15:03:36 +01:00
Double check for world name existence before trying to get one.
This commit is contained in:
parent
7e33b2d8eb
commit
21a6852a1c
@ -91,6 +91,8 @@ public class blockLoc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Location getLocation() {
|
public Location getLocation() {
|
||||||
|
if (worldName == null && this.w == null)
|
||||||
|
return null;
|
||||||
World w = this.w == null ? Bukkit.getWorld(worldName) : this.w;
|
World w = this.w == null ? Bukkit.getWorld(worldName) : this.w;
|
||||||
if (w == null)
|
if (w == null)
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user