From 21a6852a1cee5ec65dcf83da5a7155c501a6ec2a Mon Sep 17 00:00:00 2001 From: Zrips Date: Tue, 13 Feb 2018 14:56:01 +0200 Subject: [PATCH] Double check for world name existence before trying to get one. --- src/main/java/com/gamingmesh/jobs/stuff/blockLoc.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/gamingmesh/jobs/stuff/blockLoc.java b/src/main/java/com/gamingmesh/jobs/stuff/blockLoc.java index 041a5fc6..18bb9802 100644 --- a/src/main/java/com/gamingmesh/jobs/stuff/blockLoc.java +++ b/src/main/java/com/gamingmesh/jobs/stuff/blockLoc.java @@ -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;