From c4c3551e33362a5136f1b8d17039d5a80c1091fa Mon Sep 17 00:00:00 2001 From: LocalIdentity Date: Wed, 3 Sep 2025 21:10:00 +1000 Subject: [PATCH] Fix Crash when using Bow with +1 Arrow Rune In the function to try and guess how many of the same rune there are on an item, it expects to see an integer somewhere in the modline The fix sets the value as 1 but should be fine as if a mod has a number in it, the value will be overwritten anyway --- src/Classes/Item.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Classes/Item.lua b/src/Classes/Item.lua index dbb9fffb3a..0f472fa0a0 100644 --- a/src/Classes/Item.lua +++ b/src/Classes/Item.lua @@ -809,7 +809,7 @@ function ItemClass:ParseRaw(raw, rarity, highQuality) local specificItemType = self.base.type:lower() for runeName, runeMods in pairs(data.itemMods.Runes) do local addModToGroupedRunes = function (modLine) - local runeValue + local runeValue = 1 local runeStrippedModLine = modLine:gsub("(%d%.?%d*)", function(val) runeValue = val return "#" @@ -835,7 +835,7 @@ function ItemClass:ParseRaw(raw, rarity, highQuality) local remainingRunes = self.itemSocketCount for i, modLine in ipairs(self.runeModLines) do - local value + local value = 1 local strippedModLine = modLine.line:gsub("(%d%.?%d*)", function(val) value = val return "#"