Skip to content

Commit

Permalink
GuildClicky - Corrected initialization bug
Browse files Browse the repository at this point in the history
- Will now only validate portals when inside a place that has them.
-- this corrects the guildclicky ui being blank if the script was loaded outside of a hall.
  • Loading branch information
Sicprofundus committed Jul 18, 2023
1 parent 55f4933 commit 57b231d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion guildclicky/init.lua
Expand Up @@ -318,6 +318,8 @@ local function insideguildhall()
return guildhallzonesbyID[mq.TLO.Zone.ID()] == true
end
local bSetupComplete = false
local function setup()
mq.bind('/guildclicky', bind_guildclicky)
mq.bind('/gc', bind_guildclicky)
Expand All @@ -330,10 +332,14 @@ end
local function main()
while true do
if insideguildhall() and not bSetupComplete then
setup()
end
if bDisplayUI and not insideguildhall() then
bDisplayUI = false
end
mq.delay(100)
mq.delay(500)
end
end
Expand Down

0 comments on commit 57b231d

Please sign in to comment.