forked from minetest-mods/unified_inventory
reduce table lookups during initialization
This commit is contained in:
@ -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
|
||||
|
||||
-- This pair of encoding functions is used where variable text must go in
|
||||
-- button names, where the text might contain formspec metacharacters.
|
||||
|
Reference in New Issue
Block a user