Fixes cigarettes runtiming when preferences generation attempts to light them before initialization is done. (#31444)
* Update cigs_lighters.dm * Update cigs_lighters.dm * Update cigs_lighters.dm
This commit is contained in:
committed by
CitadelStationBot
parent
f8d0646b09
commit
3d4b35d000
@@ -157,6 +157,10 @@ CIGARETTE PACKETS ARE IN FANCY.DM
|
||||
/obj/item/clothing/mask/cigarette/proc/light(flavor_text = null)
|
||||
if(lit)
|
||||
return
|
||||
if(!initialized)
|
||||
icon_state = icon_on
|
||||
item_state = icon_on
|
||||
return
|
||||
|
||||
lit = TRUE
|
||||
name = "lit [name]"
|
||||
|
||||
Reference in New Issue
Block a user