]> git.lizzy.rs Git - minetest.git/commitdiff
Fix typo in core.after (#4560)
authorRui <Rui-Minetest@users.noreply.github.com>
Sat, 1 Oct 2016 14:16:50 +0000 (23:16 +0900)
committerNer'zhul <nerzhul@users.noreply.github.com>
Sat, 1 Oct 2016 14:16:50 +0000 (16:16 +0200)
builtin/game/misc.lua

index d7164812aaa4c5046bcb1c0fa6f23b8e2171aab0..1333a75ba21edf6c6b3b1e145229cfdfdb1a61af 100644 (file)
@@ -38,7 +38,7 @@ core.register_globalstep(function(dtime)
 end)
 
 function core.after(after, func, ...)
-       assert(tonumber(time) and type(func) == "function",
+       assert(tonumber(after) and type(func) == "function",
                        "Invalid core.after invocation")
        jobs[#jobs + 1] = {
                func = func,