From 76a9efff71f924b143af8945ce02ed336b6a1090 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 5 Feb 2015 10:03:07 +0100 Subject: reduce table lookups during initialization --- api.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'api.lua') diff --git a/api.lua b/api.lua index 7ee5b9e..b338cfb 100644 --- a/api.lua +++ b/api.lua @@ -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() -- cgit v1.2.3