Skip to content

Commit

Permalink
account for nils in lastest version query due to downed api
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jul 18, 2018
1 parent a27c7e9 commit 21461f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Themes/Til Death/BGAnimations/ScreenTitleMenu underlay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ local gameneedsupdating = false
t[#t+1] = Def.Quad{
InitCommand=function(self)
self:xy(22,134):zoomto(126,36):halign(0):valign(0):diffuse(getMainColor('frames')):diffusealpha(0)
if tonumber((DLMAN:GetLastVersion():gsub("[.]","",1))) > tonumber((GAMESTATE:GetEtternaVersion():gsub("[.]","",1))) then
local latest = tonumber((DLMAN:GetLastVersion():gsub("[.]","",1)))
local current = tonumber((GAMESTATE:GetEtternaVersion():gsub("[.]","",1)))
if latest and latest > current then
gameneedsupdating = true
end
end,
Expand Down

0 comments on commit 21461f2

Please sign in to comment.