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
🆑
fix: Fixed invisible potted plants
/🆑
This commit is contained in:
SmArtKar
2024-10-23 14:03:08 +02:00
committed by GitHub
parent 7aa9f1a096
commit 70518566ae
@@ -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)