Skip to content

Commit 9cbf552

Browse files
authored
Merge pull request #18 from P-333/master
Closes #17
2 parents 553d575 + c4cec2f commit 9cbf552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/frosthex/timingsystem/restapi/network/SparkManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ private static JsonObject serializeLocation(Location loc) {
400400
obj.addProperty("z",loc.getZ());
401401
obj.addProperty("pitch",loc.getPitch());
402402
obj.addProperty("yaw",loc.getYaw());
403-
obj.addProperty("world_name",loc.getWorld().getName());
403+
obj.addProperty("world_name", loc.isWorldLoaded() ? loc.getWorld().getName() : "null");
404404
}
405405

406406
return obj;

0 commit comments

Comments
 (0)