Prevent mice etc from unwrapping parcels (#40838)

* init

* no wrapping yourself

* Revert "no wrapping yourself"

This reverts commit d66cb17e4c306ff95f33bcedf7fd464aa7b4ff90.
This commit is contained in:
ScarKy0
2025-10-11 23:22:12 +02:00
committed by GitHub
parent 98e5e9a5cb
commit b78bfded44

View File

@@ -38,7 +38,10 @@ public sealed partial class ParcelWrappingSystem
private void OnGetVerbsForWrappedParcel(Entity<WrappedParcelComponent> entity,
ref GetVerbsEvent<InteractionVerb> 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.