diff options
author | Wuzzy <almikes@aol.com> | 2016-11-09 02:42:36 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-11-09 02:42:36 +0100 |
commit | f4a5eb25f6e777637c3516ccd2546a7adafbaa77 (patch) | |
tree | 2d19e626f9d9be8eb8d1f90fbbd9ad8c73f64934 | |
parent | 43da09620ed84f13e86b958e52b5c478f01f5227 (diff) |
Fix mod not working with mod security and intllib
-rw-r--r-- | chat_commands.lua | 5 | ||||
-rw-r--r-- | init.lua | 5 | ||||
-rw-r--r-- | sfinv.lua | 5 | ||||
-rw-r--r-- | triggers.lua | 5 | ||||
-rw-r--r-- | unified_inventory.lua | 5 |
5 files changed, 10 insertions, 15 deletions
diff --git a/chat_commands.lua b/chat_commands.lua index 932457b..c386c19 100644 --- a/chat_commands.lua +++ b/chat_commands.lua @@ -15,9 +15,8 @@ -- 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 @@ -16,9 +16,8 @@ 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 @@ -1,8 +1,7 @@ if minetest.get_modpath("sfinv") 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 diff --git a/triggers.lua b/triggers.lua index e16b4ee..108a5c5 100644 --- a/triggers.lua +++ b/triggers.lua @@ -15,9 +15,8 @@ -- 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 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 |