Skip to content

Commit

Permalink
MaterialStorage: QueueDel->Del (#2899)
Browse files Browse the repository at this point in the history
  • Loading branch information
whatston3 authored Feb 11, 2025
1 parent d734a97 commit a4bfbc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Content.Server/Materials/MaterialStorageSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,14 @@ public override bool TryInsertMaterialEntity(EntityUid user,
_audio.PlayPvs(storage.InsertingSound, receiver);
_popup.PopupEntity(Loc.GetString("machine-insert-item", ("user", user), ("machine", receiver),
("item", toInsert)), receiver);
QueueDel(toInsert);
//QueueDel(toInsert); // Frontier

// Logging
TryComp<StackComponent>(toInsert, out var stack);
var count = stack?.Count ?? 1;
_adminLogger.Add(LogType.Action, LogImpact.Low,
$"{ToPrettyString(user):player} inserted {count} {ToPrettyString(toInsert):inserted} into {ToPrettyString(receiver):receiver}");
Del(toInsert); // Frontier: delete immediately, don't queue
return true;
}

Expand Down

0 comments on commit a4bfbc8

Please sign in to comment.