jiggle SSatoms gently

This commit is contained in:
spookerton
2022-10-16 12:56:07 +01:00
parent 15fae406e0
commit 32d32f6646
4 changed files with 108 additions and 145 deletions

View File

@@ -404,13 +404,13 @@
// As this is only done at runtime, we have to create all the vending machines in existence and force them
// to register their products when this asset initializes.
/datum/asset/spritesheet/vending/proc/populate_vending_products()
SSatoms.map_loader_begin()
SSatoms.BeginMapLoad()
for(var/path in subtypesof(/obj/machinery/vending))
var/obj/machinery/vending/x = new path(null)
// force an inventory build; with map_loader_begin active, init isn't called
// force an inventory build; with BeginMapLoad active, init isn't called
x.build_inventory()
qdel(x)
SSatoms.map_loader_stop()
SSatoms.FinishMapLoad()
// /datum/asset/simple/genetics
// assets = list(