fix(inferium-gui): broken parseSeedName when value is falsy
This commit is contained in:
parent
566df84c75
commit
99d9551a68
@ -20,6 +20,10 @@ local function formatSeedName(essenceName)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function parseSeedName(seedName)
|
local function parseSeedName(seedName)
|
||||||
|
if not seedName then
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
local result, nbReplaced = string.gsub(seedName, 'mysticalagriculture:', '')
|
local result, nbReplaced = string.gsub(seedName, 'mysticalagriculture:', '')
|
||||||
|
|
||||||
if nbReplaced == 0 then
|
if nbReplaced == 0 then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user