ПТ | фикс распределения слотов ролей при присоединении (#3649)
This commit is contained in:
parent
8dbad24dbf
commit
e850f8afa7
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue