forked from nalc/homedecor_modpack
fix intllib support and remove unnecessary checks of it
This commit is contained in:
parent
9f87c47ebe
commit
24db06a0b0
@ -5,12 +5,7 @@
|
||||
-- This file defines some items in order to not have to depend on other mods.
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
|
||||
|
||||
if (not minetest.get_modpath("homedecor")) then
|
||||
|
||||
|
@ -16,15 +16,9 @@ homedecor.debug = 0
|
||||
homedecor.detail_level = 16
|
||||
|
||||
homedecor.modpath = minetest.get_modpath("homedecor")
|
||||
homedecor.intllib_modpath = minetest.get_modpath("intllib")
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
|
||||
homedecor.gettext = S
|
||||
|
||||
-- debug
|
||||
|
@ -13,7 +13,6 @@
|
||||
signs_lib = {}
|
||||
|
||||
signs_lib.modpath = minetest.get_modpath("signs_lib")
|
||||
signs_lib.intllib_modpath = minetest.get_modpath("intllib")
|
||||
|
||||
signs_lib.wall_sign_model = {
|
||||
nodebox = {
|
||||
@ -77,12 +76,7 @@ signs_lib.sign_post_model = {
|
||||
}
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
|
||||
signs_lib.gettext = S
|
||||
|
||||
-- the list of standard sign nodes
|
||||
|
Loading…
Reference in New Issue
Block a user