mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 19:47:47 +01:00
Fixes a borg gripper bug (#19458)
* Fixes a borg gripper bug * Add some admin vars and pass args
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user