Merge pull request #738 from CHOMPStationBot/upstream-merge-9247

[MIRROR] [MIRROR] Fixes a runtime when alien syringes are spawned during map loading
This commit is contained in:
Nadyr
2020-10-22 10:19:54 -04:00
committed by GitHub

View File

@@ -551,7 +551,9 @@
var/obj/item/weapon/reagent_containers/syringe/S = new_item
S.volume = 30
S.reagents.maximum_volume = 30
//If S hasn't initialized yet, S.reagents will be null.
//However, in that case Initialize will set the maximum volume to the volume for us, so we don't need to do anything.
S.reagents?.maximum_volume = 30
item_type = new_item.name