Skip to content

Commit e695808

Browse files
authored
FIX: first explicit missing if it does not produce a modList (#8576)
The item parsing logic in WIKI mode seems to rely on finding a mod that produces a modList to set the foundExplicit variable to true which then allows mods that do not produce a modList to be added to lineList. This causes issues with items such as Dialla's Malefaction where the first explicit line does not have any parsing which causes it to not be added to linesList. Interestingly enough other mods wihch are parsed piece-wise work fine here as they produce and empty modList with the extras paramter.
1 parent 479aab9 commit e695808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Classes/Item.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ function ItemClass:ParseRaw(raw, rarity, highQuality)
813813
elseif gameModeStage == "FINDEXPLICIT" then
814814
gameModeStage = "DONE"
815815
end
816-
elseif foundExplicit then
816+
elseif foundExplicit or (not foundExplicit and gameModeStage == "EXPLICIT") then
817817
modLine.modList = { }
818818
modLine.extra = line
819819
t_insert(modLines, modLine)

0 commit comments

Comments
 (0)