From 002f0c41dc6d28d52a164af717d069272774c069 Mon Sep 17 00:00:00 2001 From: vuonojenmustaturska Date: Fri, 16 Feb 2018 00:24:15 +0200 Subject: [PATCH] Merge pull request #35680 from MoreRobustThanYou/patch-60 Fixes SCP-294 losing its top sometimes --- code/modules/reagents/chemistry/machinery/scp_294.dm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/modules/reagents/chemistry/machinery/scp_294.dm b/code/modules/reagents/chemistry/machinery/scp_294.dm index 75f62dd4d1..ad3971db63 100644 --- a/code/modules/reagents/chemistry/machinery/scp_294.dm +++ b/code/modules/reagents/chemistry/machinery/scp_294.dm @@ -24,6 +24,11 @@ . = ..() GLOB.poi_list += src top_overlay = mutable_appearance(icon, "294_top", layer = ABOVE_MOB_LAYER) + update_icon() + + +/obj/machinery/chem_dispenser/scp_294/update_icon() + cut_overlays() add_overlay(top_overlay) /obj/machinery/chem_dispenser/scp_294/Destroy() @@ -81,4 +86,4 @@ for(var/X in GLOB.chemical_reagents_list) var/datum/reagent/R = GLOB.chemical_reagents_list[X] if(R.can_synth && input == replacetext(lowertext(R.name), " ", "")) - return X \ No newline at end of file + return X