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

@ -3,12 +3,7 @@
-- Copyright (c) 2012 cornernote, Brett O'Donnell <cornernote@gmail.com>
-- License: GPLv3
local S
if rawget(_G, "intllib") then
S = intllib.Getter()
else
S = function(s) return s end
end
local S = unified_inventory.gettext
unified_inventory.register_page("bags", {
get_formspec = function(player)