Fix mod not working with mod security and intllib

This commit is contained in:
rubenwardy 2016-11-14 21:13:32 +00:00 committed by GitHub
commit ab7206e150
5 changed files with 10 additions and 15 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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