Fix mod not working with intllib and mod security

master
Wuzzy 2016-11-09 01:18:48 +01:00
parent 7615fbac09
commit be2c551f0b
1 changed files with 1 additions and 2 deletions

View File

@ -1,8 +1,7 @@
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
S = intllib.Getter()
else
S = function ( s ) return s end
end