aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntumDeluge <antumdeluge@gmail.com>2017-07-08 20:33:10 -0700
committersofar <sofar+github@foo-projects.org>2017-08-12 14:08:04 -0700
commitacd570ba0d74cf6352d9c618066054c36c3095f9 (patch)
tree44589a0666dcde978c74cb7b3b2001d0fdaf1072
parentf3005d6367337218ea98e4a4951ae9bef7d521ee (diff)
downloadmoreblocks-acd570ba0d74cf6352d9c618066054c36c3095f9.tar.gz
moreblocks-acd570ba0d74cf6352d9c618066054c36c3095f9.tar.bz2
moreblocks-acd570ba0d74cf6352d9c618066054c36c3095f9.zip
Replace deprecated function 'intllib.Getter':
- Check first for 'intllib.make_gettext_pair', otherwise continue using deprecated function
-rw-r--r--init.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index ef011a8..c7fde52 100644
--- a/init.lua
+++ b/init.lua
@@ -12,7 +12,11 @@ moreblocks = {}
local S
if minetest.global_exists("intllib") then
- S = intllib.Getter()
+ if intllib.make_gettext_pair then
+ S = intllib.make_gettext_pair()
+ else
+ S = intllib.Getter()
+ end
else
S = function(s) return s end
end