Skip to content

Commit

Permalink
fix structure
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Jun 7, 2024
1 parent c728a83 commit d1ac718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/gm-unit/editor_body.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ function makePartList(caste)

for index, modifier in ipairs(caste.bp_appearance.modifiers) do
local name
if modifier.noun ~= "" then
name = modifier.noun
if modifier.modifier.noun ~= "" then
name = modifier.modifier.noun
else
name = caste.body_info.body_parts[modifier.body_parts[0]].name_singular[0].value -- Use the name of the first body part modified
end
Expand Down

0 comments on commit d1ac718

Please sign in to comment.