]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
feat(chameleon): Chameleon verb only shows to the wearer (#25746)
authorexincore <me@exin.xyz>
Fri, 1 Mar 2024 12:49:49 +0000 (06:49 -0600)
committerGitHub <noreply@github.com>
Fri, 1 Mar 2024 12:49:49 +0000 (15:49 +0300)
Content.Server/Clothing/Systems/ChameleonClothingSystem.cs

index a087ebdd49c13043dfbe15b79607b18cf6ab66c3..6fbfd9f36737177dbbfcc24798f5177dd361742f 100644 (file)
@@ -33,7 +33,7 @@ public sealed class ChameleonClothingSystem : SharedChameleonClothingSystem
 
     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;
 
         args.Verbs.Add(new InteractionVerb()