Skip to content

Commit

Permalink
core.after: Improve assertion message (#8388)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClobberXD authored and SmallJoker committed Mar 17, 2019
1 parent 7f1c2b8 commit d50feb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/common/after.lua
Expand Up @@ -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,
Expand Down

0 comments on commit d50feb8

Please sign in to comment.