From db762ecb45fee06a6bcd6880c62f5d2953bb8471 Mon Sep 17 00:00:00 2001 From: Heroman Date: Sun, 30 Jun 2019 06:43:22 +1000 Subject: [PATCH] Fixes lampshade duping --- code/modules/power/lighting.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm index a23a65ffdf..11287b9733 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -212,6 +212,13 @@ var/global/list/light_type_cache = list() construct_type = /obj/machinery/light_construct/flamp var/lamp_shade = 1 +/obj/machinery/light/flamp/New(atom/newloc, obj/machinery/light_construct/construct = null) + ..(newloc, construct) + + if(construct) + lamp_shade = 0 + update_icon() + /obj/machinery/light/flamp/flicker auto_flicker = TRUE