Predicted lock popups (#16692)
This commit is contained in:
@@ -159,7 +159,7 @@ public record struct InsertIntoEntityStorageAttemptEvent(bool Cancelled = false)
|
||||
public record struct StoreMobInItemContainerAttemptEvent(bool Handled, bool Cancelled = false);
|
||||
|
||||
[ByRefEvent]
|
||||
public record struct StorageOpenAttemptEvent(bool Silent, bool Cancelled = false);
|
||||
public record struct StorageOpenAttemptEvent(EntityUid User, bool Silent, bool Cancelled = false);
|
||||
|
||||
[ByRefEvent]
|
||||
public readonly record struct StorageBeforeOpenEvent;
|
||||
|
||||
@@ -340,7 +340,7 @@ public abstract class SharedEntityStorageSystem : EntitySystem
|
||||
}
|
||||
}
|
||||
|
||||
var ev = new StorageOpenAttemptEvent(silent);
|
||||
var ev = new StorageOpenAttemptEvent(user, silent);
|
||||
RaiseLocalEvent(target, ref ev, true);
|
||||
|
||||
return !ev.Cancelled;
|
||||
|
||||
Reference in New Issue
Block a user