mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-17 18:13:34 +01:00
fix engiborgs not being able to insert/remove lights from sockets (#28363)
This commit is contained in:
committed by
GitHub
parent
5495930e45
commit
2fbbcb41df
@@ -594,6 +594,13 @@
|
||||
// attack with item - insert light (if right type), otherwise try to break the light
|
||||
|
||||
/obj/machinery/light/item_interaction(mob/living/user, obj/item/used, list/modifiers)
|
||||
var/obj/item/gripper/gripper = used
|
||||
if(istype(gripper) && gripper.engineering_machine_interaction)
|
||||
if(gripper.gripped_item)
|
||||
return item_interaction(user, gripper.gripped_item, modifiers)
|
||||
else
|
||||
return ..()
|
||||
|
||||
user.changeNext_move(CLICK_CD_MELEE) // This is an ugly hack and I hate it forever
|
||||
//Light replacer code
|
||||
if(istype(used, /obj/item/lightreplacer))
|
||||
|
||||
Reference in New Issue
Block a user