summaryrefslogtreecommitdiff
path: root/food_basic/init.lua
diff options
context:
space:
mode:
authorsys4-fr <sys4@free.fr>2017-04-03 01:50:59 +0200
committerrubenwardy <rubenwardy@gmail.com>2017-04-03 00:50:59 +0100
commit93de17fdc30dcdd498aa20c065a9d068933190d4 (patch)
tree0d7d7439d5818b43e40c596b7b097bcb1b931dcc /food_basic/init.lua
parent54e7fa3b8117fa61da84b1a6d68dc912591d3da0 (diff)
Fix intllib boilerplate code
Diffstat (limited to 'food_basic/init.lua')
-rw-r--r--food_basic/init.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/food_basic/init.lua b/food_basic/init.lua
index f00048d..e240efa 100644
--- a/food_basic/init.lua
+++ b/food_basic/init.lua
@@ -13,9 +13,8 @@ dofile(minetest.get_modpath("food_basic").."/ingredients.lua")
-- Boilerplate to support localized strings if intllib mod is installed.
local S = 0
-if rawget(_G, "intllib") then
- dofile(minetest.get_modpath("intllib").."/intllib.lua")
- S = intllib.Getter(minetest.get_current_modname())
+if minetest.get_modpath("intllib") then
+ S = intllib.Getter()
else
S = function ( s ) return s end
end