From: ScarKy0 <106310278+ScarKy0@users.noreply.github.com> Date: Sat, 11 Oct 2025 21:22:12 +0000 (+0200) Subject: Prevent mice etc from unwrapping parcels (#40838) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=b78bfded443ecf4f9f0ee6b6952b1cf4db318133;p=space-station-14.git Prevent mice etc from unwrapping parcels (#40838) * init * no wrapping yourself * Revert "no wrapping yourself" This reverts commit d66cb17e4c306ff95f33bcedf7fd464aa7b4ff90. --- diff --git a/Content.Shared/ParcelWrap/Systems/ParcelWrappingSystem.WrappedParcel.cs b/Content.Shared/ParcelWrap/Systems/ParcelWrappingSystem.WrappedParcel.cs index bb0c9437ff..3f1aa2fa80 100644 --- a/Content.Shared/ParcelWrap/Systems/ParcelWrappingSystem.WrappedParcel.cs +++ b/Content.Shared/ParcelWrap/Systems/ParcelWrappingSystem.WrappedParcel.cs @@ -38,7 +38,10 @@ public sealed partial class ParcelWrappingSystem private void OnGetVerbsForWrappedParcel(Entity entity, ref GetVerbsEvent args) { - if (!args.CanAccess) + if (!args.CanAccess || !args.CanComplexInteract) + return; + + if (entity.Comp.Contents.Contains(args.User)) return; // "Capture" the values from `args` because C# doesn't like doing the capturing for `ref` values.