Fixes a borg gripper bug (#19458)

* Fixes a borg gripper bug

* Add some admin vars and pass args
This commit is contained in:
Cameron Lennox
2026-05-13 19:27:06 -04:00
committed by GitHub
parent 9d645db4a3
commit 3c937494cf
3 changed files with 29 additions and 14 deletions
+4 -4
View File
@@ -437,18 +437,18 @@
..()
return
/obj/item/stack/attackby(obj/item/W as obj, mob/user as mob)
/obj/item/stack/attackby(obj/item/W, mob/user)
if(istype(W, /obj/item/gripper))
var/obj/item/gripper/G = W
G.consolidate_stacks(src)
G.consolidate_stacks(src, user)
if(QDELETED(src))
return
return TRUE
else if(istype(W, /obj/item/stack))
var/obj/item/stack/S = W
src.transfer_to(S)
if(QDELETED(src))
return
return TRUE
if (S && user.check_current_machine(S))
S.interact(user)