mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 13:39:16 +01:00
Fixes Runtime in chemsmoke.dm,177: Cannot read null.seed_name
- This was caused by create_spores() being called on seeds which were not registered with the plant_controller (becuase they had never been harvested) - Instead of registering them, we can just pass the seed datum itself, that is all the chemsmoke needs anyway.
This commit is contained in:
@@ -104,7 +104,7 @@
|
||||
var/injecting = min(5,max(1,get_trait(TRAIT_POTENCY)/3))
|
||||
R.add_reagent(rid,injecting)
|
||||
|
||||
var/datum/effect/effect/system/smoke_spread/chem/spores/S = new(name)
|
||||
var/datum/effect/effect/system/smoke_spread/chem/spores/S = new(src)
|
||||
S.attach(T)
|
||||
S.set_up(R, round(get_trait(TRAIT_POTENCY)/4), 0, T)
|
||||
S.start()
|
||||
|
||||
Reference in New Issue
Block a user