Fix repairing Cyborg headlamp even when its panel is closed (#38550)

This commit is contained in:
Tad Hardesty
2018-06-18 04:03:21 -04:00
committed by Emmett Gaines
parent 465706933e
commit cde78d069a
@@ -529,7 +529,7 @@
else if(istype(W, /obj/item/flashlight))
if(!opened)
to_chat(user, "<span class='warning'>You need to open the panel to repair the headlamp!</span>")
if(lamp_cooldown <= world.time)
else if(lamp_cooldown <= world.time)
to_chat(user, "<span class='warning'>The headlamp is already functional!</span>")
else
if(!user.temporarilyRemoveItemFromInventory(W))