Skip to content

Commit

Permalink
Fix item section count not clamped
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharparam committed Dec 2, 2024
1 parent f8f07b3 commit 6e00672
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripts/combinator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ function CC:get_item_section_count()
if not control then return 0 end
self:get_or_create_section(CYBERSYN_SECTION_ID)
self:get_or_create_section(NETWORK_SECTION_ID)
if control.sections_count < 2 then return 0 end
return control.sections_count - 2
end

Expand Down

0 comments on commit 6e00672

Please sign in to comment.