From 70518566ae50e0e4ccb59532d24d2f7ecfbb9210 Mon Sep 17 00:00:00 2001 From: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Date: Wed, 23 Oct 2024 14:03:08 +0200 Subject: [PATCH] Fixes invisible potted plants (#87373) ## About The Pull Request #87207 changed potted plants list setup but forgot to change init code to accommodate for it. Closes #87366 ## Changelog :cl: fix: Fixed invisible potted plants /:cl: --- code/game/objects/items/kirby_plants/kirbyplants.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/kirby_plants/kirbyplants.dm b/code/game/objects/items/kirby_plants/kirbyplants.dm index 16153e8524c..1e9718f934e 100644 --- a/code/game/objects/items/kirby_plants/kirbyplants.dm +++ b/code/game/objects/items/kirby_plants/kirbyplants.dm @@ -95,8 +95,8 @@ //Handles randomizing the icon during initialize() /obj/item/kirbyplants/random/proc/randomize_base_icon_state() - if(!random_plant_states) - generate_states() + if(isnull(random_plant_states)) + random_plant_states = generate_states() base_icon_state = pick(random_plant_states) if(!dead) //no need to update the icon if we're already dead. update_appearance(UPDATE_ICON)