Merge pull request #14530 from Seris02/dirtnotspace

prevents persistent dirt (and other filth) from spawning in spess and walls
This commit is contained in:
Heroman3003
2023-02-23 13:31:54 +10:00
committed by CHOMPStation2
parent 7f52a2318b
commit b3684c7ec6

View File

@@ -4,6 +4,8 @@
/datum/persistent/filth/CreateEntryInstance(var/turf/creating, var/list/token)
var/_path = token["path"]
if (isspace(creating) || iswall(creating) ||isopenspace(creating))
return
if (saves_dirt)
new _path(creating, token["age"]+1, token["dirt"])
else