fix: Block EntityStorage from inserting into mechs (#37942)
This additionally moves the hard-coded check for HandsComp that previously did this, and moves it into an event which now both HandsSystem and MechSystem subscribe to.
This commit is contained in:
@@ -166,6 +166,13 @@ public record struct InsertIntoEntityStorageAttemptEvent(EntityUid ItemToInsert,
|
||||
[ByRefEvent]
|
||||
public record struct EntityStorageInsertedIntoAttemptEvent(EntityUid ItemToInsert, bool Cancelled = false);
|
||||
|
||||
/// <summary>
|
||||
/// Raised on the Container's owner whenever an entity storage tries to dump its
|
||||
/// contents while within a container.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public record struct EntityStorageIntoContainerAttemptEvent(BaseContainer Container, bool Cancelled = false);
|
||||
|
||||
[ByRefEvent]
|
||||
public record struct StorageOpenAttemptEvent(EntityUid User, bool Silent, bool Cancelled = false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user