feat(chameleon): Chameleon verb only shows to the wearer (#25746)
This commit is contained in:
@@ -33,7 +33,7 @@ public sealed class ChameleonClothingSystem : SharedChameleonClothingSystem
|
|||||||
|
|
||||||
private void OnVerb(EntityUid uid, ChameleonClothingComponent component, GetVerbsEvent<InteractionVerb> args)
|
private void OnVerb(EntityUid uid, ChameleonClothingComponent component, GetVerbsEvent<InteractionVerb> args)
|
||||||
{
|
{
|
||||||
if (!args.CanAccess || !args.CanInteract)
|
if (!args.CanAccess || !args.CanInteract || component.User != args.User)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
args.Verbs.Add(new InteractionVerb()
|
args.Verbs.Add(new InteractionVerb()
|
||||||
|
|||||||
Reference in New Issue
Block a user