From f4a5eb25f6e777637c3516ccd2546a7adafbaa77 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 9 Nov 2016 02:42:36 +0100 Subject: Fix mod not working with mod security and intllib --- unified_inventory.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'unified_inventory.lua') diff --git a/unified_inventory.lua b/unified_inventory.lua index 169cdfe..a4bb02d 100644 --- a/unified_inventory.lua +++ b/unified_inventory.lua @@ -1,8 +1,7 @@ if minetest.get_modpath("unified_inventory") ~= nil then local S - if (intllib) then - dofile(minetest.get_modpath("intllib").."/intllib.lua") - S = intllib.Getter(minetest.get_current_modname()) + if minetest.get_modpath("intllib") then + S = intllib.Getter() else S = function ( s ) return s end end -- cgit v1.2.3