Only log about dialogue if timer is inactive

This commit is contained in:
Lilian Jónsdóttir 2020-10-09 23:47:26 -07:00
parent f8c699ca1e
commit 15df5dacd7

View file

@ -92,9 +92,9 @@ eventFunctions.onInfoResponse = function(e)
for _, item in pairs(followMatches) do
if command:match(item) or dialogue:match(item) then
log("Found %s in dialogue, rebuilding followers", item)
-- wait until game time restarts, and don't set multiple timers
if not postDialogueTimer or postDialogueTimer.state ~= timer.active then
log("Found %s in dialogue, rebuilding followers", item)
postDialogueTimer = timer.start({
type = timer.simulate,
duration = 0.5,