core.after: Improve assertion message (#8388)
authorANAND <ClobberXD@gmail.com>
Sun, 17 Mar 2019 09:25:47 +0000 (14:55 +0530)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Sun, 17 Mar 2019 09:25:47 +0000 (10:25 +0100)
builtin/common/after.lua

index cdfaaab8616ba0bccf28b962d13160f3e9fd0790..1bed2d31f48d8616b700b458076c7f1b0d06624b 100644 (file)
@@ -23,7 +23,7 @@ end)
 
 function core.after(after, func, ...)
        assert(tonumber(after) and type(func) == "function",
-               "Invalid core.after invocation")
+               "Invalid minetest.after invocation")
        jobs[#jobs + 1] = {
                func = func,
                expire = time + after,