mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
core.after: Improve assertion message (#8388)
This commit is contained in:
parent
7f1c2b8a00
commit
d50feb89de
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ end)
|
||||||
|
|
||||||
function core.after(after, func, ...)
|
function core.after(after, func, ...)
|
||||||
assert(tonumber(after) and type(func) == "function",
|
assert(tonumber(after) and type(func) == "function",
|
||||||
"Invalid core.after invocation")
|
"Invalid minetest.after invocation")
|
||||||
jobs[#jobs + 1] = {
|
jobs[#jobs + 1] = {
|
||||||
func = func,
|
func = func,
|
||||||
expire = time + after,
|
expire = time + after,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue