From b7db87de7714734c19c2cc0adb95342832900b6a Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Sat, 8 Jul 2017 22:24:07 -0700 Subject: [PATCH] [ilights] Update to Git patch d7f4f7e: https://github.com/AntumMT/mod-ilights/tree/d7f4f7e --- README.md | 3 ++- mods/lighting/ilights/init.lua | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2779b6f3..ce08f8d8 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m * [inventory_plus][] ([BSD 3-Clause][lic.inventory_plus]) -- version: [fd71e3d Git][ver.inventory_plus] *2016-05-13* * lighting/ * [glow][] ([GPL][lic.gpl2.0]) -- version: [78d0166 Git][ver.glow] *2017-05-16* - * [ilights][] ([CC BY-SA][lic.ccbysa]) -- version [7060243 Git][ver.ilights] *2017-05-18* + * [ilights][] ([CC BY-SA][lic.ccbysa]) -- version [7060243 Git][ver.ilights] *2017-05-18* ([patched][patch.ilights]) * walking_light ([petermalone fork][walking_light]) ([WTFPL / CC BY-SA][lic.walking_light]) -- version: [b23d836 Git][ver.walking_light] *2017-06-21* ([patched][patch.walking_light]) * materials/ * [gems_encrustable][] ([WTFPL][lic.wtfpl]) -- version: [81d513d Git][ver.gems_encrustable] *2012-07-31* ([patched][patch.gems_encrustable]) @@ -554,6 +554,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m [patch.hovercraft]: https://github.com/AntumMT/mtmod-hovercraft/tree/73a6223 [patch.hud]: https://github.com/AntumMT/mtmod-hud/tree/6846e20 [patch.hudbars]: https://github.com/AntumMT/mtmod-hudbars/tree/9ca4f6b +[patch.ilights]: https://github.com/AntumMT/mod-ilights/tree/d7f4f7e [patch.intllib]: https://github.com/AntumMT/mod-intllib/tree/edea599 [patch.invisibility]: https://github.com/AntumMT/mtmod-invisibility/tree/f045c7c [patch.mesecons]: https://github.com/AntumMT/mtmp-mesecons/tree/830823a diff --git a/mods/lighting/ilights/init.lua b/mods/lighting/ilights/init.lua index aee2a60e..ed6f6e58 100644 --- a/mods/lighting/ilights/init.lua +++ b/mods/lighting/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