More Storage Rebalancing (#21373)

* the changes...

* eek
This commit is contained in:
Nemanja
2023-11-01 17:19:41 -06:00
committed by GitHub
parent 9e7cac2ac9
commit 85f09cae86
66 changed files with 189 additions and 202 deletions
@@ -329,6 +329,9 @@ namespace Content.Shared.Stacks
if (!Resolve(insertEnt, ref insertStack) || !Resolve(targetEnt, ref targetStack))
return false;
if (insertStack.StackTypeId != targetStack.StackTypeId)
return false;
var available = GetAvailableSpace(targetStack);
if (available <= 0)