Get rid of a ton of global variables
This commit is contained in:
parent
06933135b4
commit
bc9491ffdd
22 changed files with 214 additions and 4114 deletions
|
@ -1,13 +1,3 @@
|
|||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S;
|
||||
if (minetest.get_modpath("intllib")) then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua");
|
||||
S = intllib.Getter(minetest.get_current_modname());
|
||||
else
|
||||
S = function ( s ) return s end;
|
||||
end
|
||||
|
||||
local function deepcopy ( t )
|
||||
local nt = { };
|
||||
for k, v in pairs(t) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue