From be86aa2b5f68d656da4da7990837eb7fe434a9be Mon Sep 17 00:00:00 2001 From: Sidzaru <110207359+Sidzaru@users.noreply.github.com> Date: Sun, 26 Apr 2026 04:17:43 +0000 Subject: [PATCH] Fix dupe bug caused by StackSystem (#43738) * Fix dupe bug caused by StackSystem * Removed TryComp --- Content.Shared/Stacks/SharedStackSystem.API.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Stacks/SharedStackSystem.API.cs b/Content.Shared/Stacks/SharedStackSystem.API.cs index 372255701c..cdb8306a31 100644 --- a/Content.Shared/Stacks/SharedStackSystem.API.cs +++ b/Content.Shared/Stacks/SharedStackSystem.API.cs @@ -26,7 +26,10 @@ public abstract partial class SharedStackSystem ReduceCount(stackEnt, 1); var stackId = _prototype.Index(stackEnt.Comp.StackTypeId); - return PredictedSpawnNextToOrDrop(stackId.Spawn, stackEnt.Owner); + var entityUid = PredictedSpawnNextToOrDrop(stackId.Spawn, stackEnt.Owner); + + SetCount(entityUid, 1); + return entityUid; } #endregion