mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-02 05:23:01 +00:00
Fixes a runtime when alien syringes are spawned during map loading (#7734)
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
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user