v3.0.1 better thread check

This commit is contained in:
Paul Liverman III 2018-05-26 13:22:39 -07:00
parent 93aa79ae17
commit a44c9743dd
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ thread = function(...)
end
return start(...)
end
if not (love.graphics or love.window) then
if arg == nil then
return thread(...)
end
local thread_data = love.filesystem.newFileData(string.dump(thread), "itchy version checker")

View File

@ -102,7 +102,7 @@ thread = (...) ->
start(...)
-- detect if we are running in a thread, run directly if we are
return thread(...) unless love.graphics or love.window
return thread(...) if arg == nil
thread_data = love.filesystem.newFileData string.dump(thread), "itchy version checker"