From fdffd8edc9a746031caf507feae38c6f8408edc0 Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Thu, 3 Oct 2024 16:37:20 +0200 Subject: [PATCH] oups --- code/modules/persistence/effects/filth.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/persistence/effects/filth.dm b/code/modules/persistence/effects/filth.dm index 7143082b2ae..c1fa359bac0 100644 --- a/code/modules/persistence/effects/filth.dm +++ b/code/modules/persistence/effects/filth.dm @@ -9,7 +9,7 @@ /datum/persistent/filth/CheckTokenSanity(var/list/token) // byond's json implementation is "questionable", and uses types as keys and values without quotes sometimes even though they aren't valid json token["path"] = istext(token["path"]) ? text2path(token["path"]) : token["path"] - return ..() && ispath(token["path"] && (!saves_dirt || isnum(token["dirt"])) + return ..() && ispath(token["path"]) && (!saves_dirt || isnum(token["dirt"])) /datum/persistent/filth/CheckTurfContents(var/turf/T, var/list/token) var/_path = token["path"]