From b78bfded443ecf4f9f0ee6b6952b1cf4db318133 Mon Sep 17 00:00:00 2001 From: ScarKy0 <106310278+ScarKy0@users.noreply.github.com> Date: Sat, 11 Oct 2025 23:22:12 +0200 Subject: [PATCH] Prevent mice etc from unwrapping parcels (#40838) * init * no wrapping yourself * Revert "no wrapping yourself" This reverts commit d66cb17e4c306ff95f33bcedf7fd464aa7b4ff90. --- .../ParcelWrap/Systems/ParcelWrappingSystem.WrappedParcel.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. -- 2.51.2