Commit e8c3b69 Chomp
committed
1 parent 0397c9e commit e8c3b69 Copy full SHA for e8c3b69
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -139,10 +139,10 @@ export class BotWeaponModLimitService {
139
139
140
140
// Mod is a mount that can hold only flashlights ad limit is reached (dont want to add empty mounts if limit is reached)
141
141
if (
142
- this . itemHelper . isOfBaseclass ( modTemplate . _id , BaseClasses . MOUNT ) &&
143
- modTemplate . _props . Slots . some ( ( x ) => x . _name === "mod_flashlight" ) &&
142
+ modLimits . scope . count >= modLimits . scopeMax &&
144
143
modTemplate . _props . Slots . length === 1 &&
145
- modLimits . scope . count >= modLimits . scopeMax
144
+ this . itemHelper . isOfBaseclass ( modTemplate . _id , BaseClasses . MOUNT ) &&
145
+ modTemplate . _props . Slots . some ( ( slot ) => slot . _name === "mod_flashlight" )
146
146
) {
147
147
return true ;
148
148
}
You can’t perform that action at this time.
0 commit comments