color check that (#9150)

This commit is contained in:
Kashargul
2024-10-04 20:49:37 +02:00
committed by GitHub
parent 560f24a5a8
commit 2d753d59fc
4 changed files with 18 additions and 19 deletions

View File

@@ -49,7 +49,7 @@
// 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"]))
if(!findtext(token["art_color"], GLOB.is_color) || !findtext(token["art_shade"], GLOB.is_color) || !istext(token["art_type"]))
return
inst = new _path(creating, token["art_color"], token["art_shade"], token["art_type"], token["age"]+1)
else