From c9fb8d7c8ce8b681acf654f81e437b3ee1bb4802 Mon Sep 17 00:00:00 2001 From: Brianna Date: Thu, 29 Aug 2019 15:09:56 -0400 Subject: [PATCH] location --- src/main/java/com/songoda/ultimatemoderation/utils/Methods.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/ultimatemoderation/utils/Methods.java b/src/main/java/com/songoda/ultimatemoderation/utils/Methods.java index 3b9b851..04ad81e 100644 --- a/src/main/java/com/songoda/ultimatemoderation/utils/Methods.java +++ b/src/main/java/com/songoda/ultimatemoderation/utils/Methods.java @@ -150,7 +150,7 @@ public class Methods { * @return The serialized data. */ public static String serializeLocation(Location location) { - if (location == null) + if (location == null || location.getWorld() == null) return ""; String w = location.getWorld().getName(); double x = location.getX();