Fix storage interactions not preventing afterinteract for the item (#7973)
This commit is contained in:
@@ -185,6 +185,9 @@ namespace Content.Server.Storage.EntitySystems
|
|||||||
/// <returns>true if inserted, false otherwise</returns>
|
/// <returns>true if inserted, false otherwise</returns>
|
||||||
private void OnInteractUsing(EntityUid uid, ServerStorageComponent storageComp, InteractUsingEvent args)
|
private void OnInteractUsing(EntityUid uid, ServerStorageComponent storageComp, InteractUsingEvent args)
|
||||||
{
|
{
|
||||||
|
if (args.Handled)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!storageComp.ClickInsert)
|
if (!storageComp.ClickInsert)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -193,7 +196,8 @@ namespace Content.Server.Storage.EntitySystems
|
|||||||
if (HasComp<PlaceableSurfaceComponent>(uid))
|
if (HasComp<PlaceableSurfaceComponent>(uid))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
PlayerInsertHeldEntity(uid, args.User, storageComp);
|
if (PlayerInsertHeldEntity(uid, args.User, storageComp))
|
||||||
|
args.Handled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user