aboutsummaryrefslogtreecommitdiff
path: root/po/de
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2022-01-12 18:49:14 +0100
committerGitHub <noreply@github.com>2022-01-12 18:49:14 +0100
commitb2eb44afc50976dc0954c868977b5829f3ff8a19 (patch)
tree0d584ea84b0c570a24fea585897921122c1dc9da /po/de
parent4c8c6497799c83cb5bac773ac4eac7ea572ec78f (diff)
downloadminetest-b2eb44afc50976dc0954c868977b5829f3ff8a19.tar.gz
minetest-b2eb44afc50976dc0954c868977b5829f3ff8a19.tar.bz2
minetest-b2eb44afc50976dc0954c868977b5829f3ff8a19.zip
Fix NodeDef backwards compatibility to 5.3.0 (#11942)
1. Fixes crashes on older clients when [png is used as base image 2. Fixes liquid type assertion fails on debug builds
Diffstat (limited to 'po/de')
0 files changed, 0 insertions, 0 deletions
{} function meta:__newindex(name, value) local info = getinfo(2, "Sl") local desc = ("%s:%d"):format(info.short_src, info.currentline) if not declared[name] then local warn_key = ("%s\0%d\0%s"):format(info.source, info.currentline, name) if not warned[warn_key] and info.what ~= "main" and info.what ~= "C" then core.log("warning", ("Assignment to undeclared ".. "global %q inside a function at %s.") :format(name, desc)) warned[warn_key] = true end declared[name] = true end -- Ignore mod namespaces if WARN_INIT and name ~= core.get_current_modname() then core.log("warning", ("Global variable %q created at %s.") :format(name, desc)) end rawset(self, name, value) end function meta:__index(name) local info = getinfo(2, "Sl") local warn_key = ("%s\0%d\0%s"):format(info.source, info.currentline, name) if not declared[name] and not warned[warn_key] and info.what ~= "C" then core.log("warning", ("Undeclared global variable %q accessed at %s:%s") :format(name, info.short_src, info.currentline)) warned[warn_key] = true end return rawget(self, name) end setmetatable(_G, meta)