mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
Fix dupe bug caused by StackSystem (#43738)
* Fix dupe bug caused by StackSystem * Removed TryComp
This commit is contained in:
parent
ab96ec8b20
commit
be86aa2b5f
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue