mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-17 02:54:44 +01:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user