1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-06-28 04:50:21 +02:00

fix intllib support and remove unnecessary checks of it

This commit is contained in:
Tim
2015-02-05 10:14:44 +01:00
parent 9f87c47ebe
commit 24db06a0b0
3 changed files with 3 additions and 20 deletions

View File

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