From d40e9732d34eaa927f5a705373331af970fa1b23 Mon Sep 17 00:00:00 2001
From: Meghan-Rossi <56671765+Meghan-Rossi@users.noreply.github.com>
Date: Sat, 21 Mar 2020 12:28:19 +0000
Subject: [PATCH] update /obj/machinery/light_construct/attack_hand(..)
---
code/modules/power/lighting.dm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm
index a35bada02c..a0248e5a6d 100644
--- a/code/modules/power/lighting.dm
+++ b/code/modules/power/lighting.dm
@@ -75,12 +75,14 @@ var/global/list/light_type_cache = list()
to_chat(user, "This casing doesn't support power cells for backup power.")
/obj/machinery/light_construct/attack_hand(mob/user)
+ . = ..()
+ if(.)
+ return . // obj/machinery/attack_hand returns 1 if user can't use the machine
if(cell)
user.visible_message("[user] removes [cell] from [src]!","You remove [cell].")
user.put_in_hands(cell)
cell.update_icon()
cell = null
- add_fingerprint(user)
/obj/machinery/light_construct/attackby(obj/item/weapon/W as obj, mob/user as mob)
src.add_fingerprint(user)