Fixed an issue causing erroneous persistence of graves

This commit is contained in:
Ceikry
2023-08-12 00:30:35 +00:00
committed by Ryan
parent 2e70a9714a
commit 35f9a92aef
2 changed files with 33 additions and 0 deletions
@@ -244,6 +244,7 @@ class GraveController : PersistWorld, TickListener, InteractionListener, Command
fun serializeToServerStore() {
val archive = ServerStore.getArchive("active-graves")
archive.clear()
for ((uid,grave) in activeGraves) {
val g = JSONObject()
g["ticksRemaining"] = grave.ticksRemaining