Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyqubit committed Jun 2, 2023
1 parent 6de49d1 commit b4f5fa7
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ local function playThunder()
end

-- Not too proud of this --
local function updateContitions(resetTimerFlag)
local function updateConditions(resetTimerFlag)
if resetTimerFlag
and interiorTimer
and cell.isInterior
Expand Down Expand Up @@ -161,14 +161,14 @@ local function cellCheck(e)
sounds.remove { module = moduleName }
stopWindoors()
clearTimers()
updateContitions()
updateConditions()
return
end

-- Get out if the weather is the same as last time --
if weather == weatherLast and cellLast == cell then
debugLog("Same weather and cell detected.")
updateContitions(true)
updateConditions(true)
return
end

Expand All @@ -177,7 +177,7 @@ local function cellCheck(e)
if (isOpenPlaza(cell) == true)
and (weather == 6
or weather == 7) then
updateContitions()
updateConditions()
return
end

Expand Down Expand Up @@ -255,7 +255,7 @@ local function cellCheck(e)
thunderTimer = timer.start({ duration = thunderTime, iterations = 1, callback = playThunder, type = timer.real })
end

updateContitions()
updateConditions()
debugLog("Cell check complete.")
end

Expand Down

0 comments on commit b4f5fa7

Please sign in to comment.
  翻译: