Fixes spraycan spamming the chat when you hover it. (#82883)

## About The Pull Request
Adds a missing flag that was causing the chat to be spammed when you
were too far away from the spraycan.

## Why It's Good For The Game

Bugfix 

closes: https://github.com/tgstation/tgstation/issues/80880

## Changelog

🆑
fix: Spraycan no longer spams your chat when you mouse over it.
/🆑

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
EnterTheJake
2024-04-27 05:54:03 +02:00
committed by GitHub
parent c84be82361
commit ffca5efe81
+2 -2
View File
@@ -775,7 +775,7 @@
/obj/item/toy/crayon/spraycan/add_context(atom/source, list/context, obj/item/held_item, mob/living/user)
. = ..()
if(!user.can_perform_action(src, NEED_DEXTERITY|NEED_HANDS))
if(!user.can_perform_action(src, NEED_DEXTERITY|NEED_HANDS|SILENT_ADJACENCY))
return .
if(has_cap)
@@ -786,7 +786,7 @@
/obj/item/toy/crayon/spraycan/add_item_context(datum/source, list/context, atom/target, mob/living/user)
. = ..()
if(!user.can_perform_action(src, NEED_DEXTERITY|NEED_HANDS))
if(!user.can_perform_action(src, NEED_DEXTERITY|NEED_HANDS|SILENT_ADJACENCY))
return .
context[SCREENTIP_CONTEXT_LMB] = "Paint"