Skip to content

Commit

Permalink
fix: Check for '' not 'NULL'
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmier378 committed May 19, 2024
1 parent 882be44 commit e6b14c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ local function checkAdv()
return tostring('No Adventure Started')
end
end

local function checkExp()
if ExpWIN.Child('DZ_CurrentDZValue').Text() ~= 'NULL' then
if ExpWIN.Child('DZ_CurrentDZValue').Text() ~= '' then
exp = true
return string.format(ExpWIN.Child('DZ_CurrentDZValue').Text())
else
Expand Down

0 comments on commit e6b14c1

Please sign in to comment.