mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-16 23:55:11 +01:00
Fixed null serialization for the manual json creation
This commit is contained in:
parent
8d445aaccc
commit
4c5d96a3e5
@ -137,8 +137,8 @@ public class GMTimes extends TimeKeeper {
|
|||||||
.map(entry -> "\"" + entry.getKey() + "\": " + entry.getValue())
|
.map(entry -> "\"" + entry.getKey() + "\": " + entry.getValue())
|
||||||
.iterator(), ",").build() +
|
.iterator(), ",").build() +
|
||||||
" }," +
|
" }," +
|
||||||
" \"state\": \"" + state + "\"," +
|
(state != null ? "\"state\": \"" + state + "\"," : "\"state\": null,") +
|
||||||
" \"lastStateChange\": " + lastStateChange +
|
"\"lastStateChange\": " + lastStateChange +
|
||||||
"}";
|
"}";
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -206,8 +206,8 @@ public class WorldTimes {
|
|||||||
.map(entry -> "\"" + entry.getKey() + "\": " + entry.getValue().toJson())
|
.map(entry -> "\"" + entry.getKey() + "\": " + entry.getValue().toJson())
|
||||||
.iterator(), ",").build() +
|
.iterator(), ",").build() +
|
||||||
" }," +
|
" }," +
|
||||||
" \"currentWorld\": \"" + currentWorld + "\"," +
|
(currentWorld != null ? "\"currentWorld\": \"" + currentWorld + "\"," : "\"currentWorld\": null,") +
|
||||||
" \"currentGamemode\": \"" + currentGamemode + "\"" +
|
(currentGamemode != null ? "\"currentGamemode\": \"" + currentGamemode + "\"" : "\"currentGamemode\": null") +
|
||||||
"}";
|
"}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user