reduce table lookups during initialization

This commit is contained in:
Tim
2015-02-05 10:03:07 +01:00
parent 1a1bfc3839
commit 76a9efff71
6 changed files with 33 additions and 54 deletions

View File

@ -1,9 +1,4 @@
local S
if rawget(_G, "intllib") then
S = intllib.Getter()
else
S = function(s) return s end
end
local S = unified_inventory.gettext
-- Create detached creative inventory after loading all mods
minetest.after(0.01, function()