Prevent mice etc from unwrapping parcels (#40838)
* init * no wrapping yourself * Revert "no wrapping yourself" This reverts commit d66cb17e4c306ff95f33bcedf7fd464aa7b4ff90.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user