mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +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() {
|
||||
if (worldName == null && this.w == null)
|
||||
return null;
|
||||
World w = this.w == null ? Bukkit.getWorld(worldName) : this.w;
|
||||
if (w == null)
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user