mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
[s] Fixes a major exploit with TK in-hand clicking. (#17760)
* Adds a sanity check to sbeacondrop spawns * generalized fix with qdeleted
This commit is contained in:
@@ -96,8 +96,12 @@ var/const/tk_maxrange = 15
|
||||
|
||||
|
||||
/obj/item/tk_grab/attack_self(mob/user)
|
||||
if(focus)
|
||||
focus.attack_self_tk(user)
|
||||
if(!focus)
|
||||
return
|
||||
if(qdeleted(focus))
|
||||
qdel(src)
|
||||
return
|
||||
focus.attack_self_tk(user)
|
||||
|
||||
/obj/item/tk_grab/afterattack(atom/target, mob/living/carbon/user, proximity, params)//TODO: go over this
|
||||
if(!target || !user)
|
||||
|
||||
Reference in New Issue
Block a user