forked from nalc/food_sweet
Fix intllib boilerplate code
This commit is contained in:
parent
25cf50389e
commit
1719cf77fa
5
init.lua
5
init.lua
|
@ -15,9 +15,8 @@ end
|
|||
|
||||
-- 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())
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function ( s ) return s end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user