Prevent mice etc from unwrapping parcels (#40838)
* init * no wrapping yourself * Revert "no wrapping yourself" This reverts commit d66cb17e4c306ff95f33bcedf7fd464aa7b4ff90.
This commit is contained in:
parent
98e5e9a5cb
commit
b78bfded44
1 changed files with 4 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue