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

This commit is contained in:
Tad Hardesty
2018-06-18 01:03:21 -07:00
committed by letterjay
parent 21af80d0d8
commit b5478b6e9d
@@ -537,7 +537,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))