From 0b43f0428559cd477da796d7f27648814cc8cfe8 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 9 Jun 2016 15:08:34 +0100 Subject: Added intllib support --- init.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 757d4c5..907efd3 100644 --- a/init.lua +++ b/init.lua @@ -38,6 +38,15 @@ ethereal.savannah = 1 -- Dry yellow grass with acacia tree's ethereal.fiery = 1 -- Red grass with lava craters ethereal.sandclay = 1 -- Sand areas with clay underneath +-- Intllib +local S +if minetest.get_modpath("intllib") then + S = intllib.Getter() +else + S = function(s) return s end +end +ethereal.intllib = S + local path = minetest.get_modpath("ethereal") dofile(path .. "/plantlife.lua") @@ -67,4 +76,4 @@ if minetest.get_modpath("xanadu") then dofile(path .. "/plantpack.lua") end -print ("[MOD] Ethereal loaded") +print (S("[MOD] Ethereal loaded")) -- cgit v1.2.3