diff options
author | AntumDeluge <antumdeluge@gmail.com> | 2017-07-08 20:33:10 -0700 |
---|---|---|
committer | sofar <sofar+github@foo-projects.org> | 2017-08-12 14:08:04 -0700 |
commit | acd570ba0d74cf6352d9c618066054c36c3095f9 (patch) | |
tree | 44589a0666dcde978c74cb7b3b2001d0fdaf1072 | |
parent | f3005d6367337218ea98e4a4951ae9bef7d521ee (diff) | |
download | moreblocks-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.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |