From c060373047e50b34fab6b3b74855ada40ae2a6b9 Mon Sep 17 00:00:00 2001 From: Brianna Date: Wed, 24 Jul 2019 09:51:51 -0400 Subject: [PATCH] null worlds. --- src/main/java/com/songoda/ultimatestacker/utils/Methods.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/ultimatestacker/utils/Methods.java b/src/main/java/com/songoda/ultimatestacker/utils/Methods.java index dc4c5bb..21858b4 100644 --- a/src/main/java/com/songoda/ultimatestacker/utils/Methods.java +++ b/src/main/java/com/songoda/ultimatestacker/utils/Methods.java @@ -648,7 +648,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();