mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:30:45 -05:00
Added nullgaurd to generateFenceBaseAssorts
for items lacking slot properties
This commit is contained in:
parent
d090147653
commit
53b88a0cc0
@ -73,7 +73,10 @@ export class FenceBaseAssortGenerator {
|
||||
}
|
||||
|
||||
// Only allow rigs with no slots (carrier rigs)
|
||||
if (this.itemHelper.isOfBaseclass(rootItemDb._id, BaseClasses.VEST) && rootItemDb._props.Slots.length > 0) {
|
||||
if (
|
||||
this.itemHelper.isOfBaseclass(rootItemDb._id, BaseClasses.VEST) &&
|
||||
(rootItemDb._props.Slots?.length ?? 0) > 0
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user