Merge pull request #13499 from Putnam3145/toilet-loot-fix

Makes toilet loot not exist to cause bad GC bugs.
This commit is contained in:
silicons
2020-10-03 18:07:10 -07:00
committed by GitHub
+2 -5
View File
@@ -131,15 +131,12 @@
return ..()
/obj/structure/toilet/secret
var/obj/item/secret
var/secret_type = null
/obj/structure/toilet/secret/Initialize(mapload)
/obj/structure/toilet/secret/Initialize()
. = ..()
if (secret_type)
secret = new secret_type(src)
secret.desc += "" //In case you want to add something to the item that spawns
contents += secret
new secret_type(src)
/obj/structure/toilet/secret/LateInitialize()
. = ..()