Fix some machine construction bugs. (#18179)

This commit is contained in:
Leon Friedrich
2023-07-30 05:29:59 +12:00
committed by GitHub
parent 55f935e3fe
commit 35d6d490f1
4 changed files with 194 additions and 108 deletions

View File

@@ -167,6 +167,7 @@ namespace Content.Shared.Stacks
amount = Math.Min(amount, GetMaxCount(component));
amount = Math.Max(amount, 0);
// Server-side override deletes the entity if count == 0
component.Count = amount;
Dirty(component);