summaryrefslogtreecommitdiff
path: root/ilights/init.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-08-12 20:37:50 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-08-12 20:37:50 -0400
commit4aab7d0dbd782cf6741bdbba94440faf0c5c2e61 (patch)
treef5a13374fb176c21e381a2ae6ab53ac2ff282057 /ilights/init.lua
parent047a770ad04fc264039fa5b6109c803bd3d2d258 (diff)
downloaddreambuilder_modpack-4aab7d0dbd782cf6741bdbba94440faf0c5c2e61.tar
dreambuilder_modpack-4aab7d0dbd782cf6741bdbba94440faf0c5c2e61.tar.gz
dreambuilder_modpack-4aab7d0dbd782cf6741bdbba94440faf0c5c2e61.tar.bz2
dreambuilder_modpack-4aab7d0dbd782cf6741bdbba94440faf0c5c2e61.tar.xz
dreambuilder_modpack-4aab7d0dbd782cf6741bdbba94440faf0c5c2e61.zip
updated several mods
biome_lib, boost cart, homedecor modpack, plantlife modpack, cottages, currency, farming redo, gloopblocks, ilights, moreores, moretrees, pipeworks, plasticbox, replacer, signs_lib, streets, travelnet, unified dyes, and vines, and maybe one or two others that I didn't see in the list. :-) I fixed the misc_overrides component (it broke when I switched over to farming redo a while back), and also I've added the classic peaceful_npc mod back into the modpack, since it seems to work now. Be sure when you run a world for the first time after this update, that you "Configure" the world, *disable* all of Dreambuilder Modpack, then re-enable the whole thing. If you don't, a few mods will fail to load due to recent changes in their dependencies.
Diffstat (limited to 'ilights/init.lua')
-rw-r--r--ilights/init.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/ilights/init.lua b/ilights/init.lua
index aee2a60..ed6f6e5 100644
--- a/ilights/init.lua
+++ b/ilights/init.lua
@@ -6,8 +6,14 @@ ilights = {}
-- Boilerplate to support localized strings if intllib mod is installed.
local S
-if minetest.get_modpath("intllib") then
- S = intllib.Getter()
+if minetest.global_exists("intllib") then
+ if intllib.make_gettext_pair then
+ -- New method using gettext.
+ S = intllib.make_gettext_pair()
+ else
+ -- Old method using text files.
+ S = intllib.Getter()
+ end
else
S = function(s) return s end
end