mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-06-28 12:56:01 +02:00
use current intllib API
This commit is contained in:
@ -5,3 +5,4 @@ moreblocks?
|
||||
technic?
|
||||
dye?
|
||||
bees?
|
||||
intllib?
|
||||
|
@ -20,11 +20,10 @@ homedecor.intllib_modpath = minetest.get_modpath("intllib")
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S
|
||||
if homedecor.intllib_modpath then
|
||||
dofile(homedecor.intllib_modpath.."/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
|
||||
S = function(s) return s end
|
||||
end
|
||||
homedecor.gettext = S
|
||||
|
||||
|
Reference in New Issue
Block a user