use current intllib API

master
Vanessa Ezekowitz 2014-12-27 01:01:11 -05:00
parent abe2abe5cf
commit 2491e64723
2 changed files with 9 additions and 1 deletions

View File

@ -1,2 +1,4 @@
default
dye
intllib?

View File

@ -3,7 +3,13 @@
ilights = {}
ilights.intllib_modpath = minetest.get_modpath("intllib")
-- 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
if minetest.get_modpath("unified_inventory") or not minetest.setting_getbool("creative_mode") then
ilights.expect_infinite_stacks = false