check that as well (#9147)

This commit is contained in:
Kashargul
2024-10-04 18:58:30 +02:00
committed by GitHub
parent 09caf4b754
commit 9f3f16ae8d
+7 -4
View File
@@ -49,16 +49,19 @@
// new _path(creating, token["age"]+1)
var/atom/inst
if(ispath(_path, /obj/effect/decal/cleanable/crayon))
if(!istext(token["art_color"]) || !istext(token["art_shade"]) || !istext(token["art_type"]))
return
inst = new _path(creating, token["art_color"], token["art_shade"], token["art_type"], token["age"]+1)
else
if (saves_dirt)
new _path(creating, token["age"]+1, token["dirt"])
else
new _path(creating, token["age"]+1)
if(token["pixel_x"])
inst.pixel_x = token["pixel_x"]
if(token["pixel_y"])
inst.pixel_y = token["pixel_y"]
if(inst)
if(token["pixel_x"])
inst.pixel_x = token["pixel_x"]
if(token["pixel_y"])
inst.pixel_y = token["pixel_y"]
// CHOMPEdit End
/datum/persistent/filth/GetEntryAge(var/atom/entry)