use table.empty instead of table.isempty. + added compile.sh #1

Closed
Auios wants to merge 9 commits from Auios/BlockLua:master into master
Showing only changes of commit 7db1fc75a9 - Show all commits

View File

@@ -536,6 +536,9 @@ function bl.schedule(time, cb, ...)
end end
function _bllua_schedule_callback(id) function _bllua_schedule_callback(id)
id = tonumber(id) id = tonumber(id)
if id == nil then
error('_ts_schedule_callback: invalid id')
end
local sch = bl._scheduleTable[id] local sch = bl._scheduleTable[id]
if not sch then error('_ts_schedule_callback: no schedule with id '..id) end if not sch then error('_ts_schedule_callback: no schedule with id '..id) end
bl._scheduleTable[id] = nil bl._scheduleTable[id] = nil