Skip to content

Commit 2ed4be0

Browse files
author
mergetest
committed
Text Designer: group mirror matcher reads groupItems (not items)
The group-element category matcher checked elem.items, but the group resolver stores its parts in elem.groupItems - so a health group never matched the health mirror and rendered no cover. Read the real field.
1 parent 3cb87bc commit 2ed4be0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

TextDesigner/Render.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ end
207207
-- category set a group renders is its items' union).
208208
local function mirrorCategoryMatches(elem, category)
209209
if CONTENT_HINTS[elem.contentType] == category then return true end
210-
if elem.contentType == "group" and type(elem.items) == "table" then
211-
for _, raw in ipairs(elem.items) do
210+
if elem.contentType == "group" and type(elem.groupItems) == "table" then
211+
for _, raw in ipairs(elem.groupItems) do
212212
local ct = type(raw) == "table" and (raw.contentType or raw.type) or raw
213213
if CONTENT_HINTS[ct] == category then return true end
214214
end

0 commit comments

Comments
 (0)