[MIRROR] #57049 but only the prox check: fixes tape being able to be used on objects without proximity (#3607)

* Sticky tape no longer can be used on objects that aren't within reach. (#57103)

* #57049 but only the prox check: fixes tape being able to be used on objects without proximity

Co-authored-by: necromanceranne <40847847+necromanceranne@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-02-23 13:22:16 +00:00
committed by GitHub
co-authored by necromanceranne
parent a45c28e296
commit 3d3dcc8527
+4 -1
View File
@@ -19,7 +19,10 @@
var/list/conferred_embed = EMBED_HARMLESS
var/overwrite_existing = FALSE
/obj/item/stack/sticky_tape/afterattack(obj/item/I, mob/living/user)
/obj/item/stack/sticky_tape/afterattack(obj/item/I, mob/living/user, proximity)
if(!proximity)
return
if(!istype(I))
return