feat(chameleon): Chameleon verb only shows to the wearer (#25746)

This commit is contained in:
exincore
2024-03-01 06:49:49 -06:00
committed by GitHub
parent 30ccde0a47
commit 1abd1f615f

View File

@@ -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()