null worlds.
This commit is contained in:
parent
0d7e2fed9a
commit
c060373047
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue