null worlds.

This commit is contained in:
Brianna 2019-07-24 09:51:51 -04:00
parent 0d7e2fed9a
commit c060373047
1 changed files with 1 additions and 1 deletions

View File

@ -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();