diff options
-rw-r--r-- | builtin/common/strict.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/common/strict.lua b/builtin/common/strict.lua index 91d1f5b19..c353bb913 100644 --- a/builtin/common/strict.lua +++ b/builtin/common/strict.lua @@ -22,7 +22,7 @@ function meta:__newindex(name, value) info.currentline, name) if not warned[warn_key] and info.what ~= "main" and info.what ~= "C" then - minetest.log("error", ("Assignment to undeclared ".. + warn(("Assignment to undeclared ".. "global %q inside a function at %s.") :format(name, desc)) warned[warn_key] = true |