diff --git a/Content.Server/_Sunrise/Roles/RelativeJobsCountSystem.cs b/Content.Server/_Sunrise/Roles/RelativeJobsCountSystem.cs index fef291821a..eb8085893e 100644 --- a/Content.Server/_Sunrise/Roles/RelativeJobsCountSystem.cs +++ b/Content.Server/_Sunrise/Roles/RelativeJobsCountSystem.cs @@ -116,6 +116,10 @@ public sealed class RelativeJobsCountSystem : EntitySystem return; } + // Если TotalMaxCount равен -1 (без ограничений), не вычитаем из него + if (station.Comp.TotalMaxCount[settings.TargetJob] == -1) + return; + station.Comp.TotalMaxCount[settings.TargetJob] -= value; }