summaryrefslogtreecommitdiff
path: root/food_basic/ingredients.lua
diff options
context:
space:
mode:
Diffstat (limited to 'food_basic/ingredients.lua')
-rw-r--r--food_basic/ingredients.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/food_basic/ingredients.lua b/food_basic/ingredients.lua
index 27c5feb..c1a7283 100644
--- a/food_basic/ingredients.lua
+++ b/food_basic/ingredients.lua
@@ -8,9 +8,8 @@
-- 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