mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
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:
@@ -551,7 +551,9 @@
|
|||||||
var/obj/item/weapon/reagent_containers/syringe/S = new_item
|
var/obj/item/weapon/reagent_containers/syringe/S = new_item
|
||||||
|
|
||||||
S.volume = 30
|
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
|
item_type = new_item.name
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user