summaryrefslogtreecommitdiff
path: root/food_basic/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'food_basic/init.lua')
-rw-r--r--food_basic/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/food_basic/init.lua b/food_basic/init.lua
index 5e84fd4..9f035d4 100644
--- a/food_basic/init.lua
+++ b/food_basic/init.lua
@@ -13,7 +13,7 @@ dofile(minetest.get_modpath("food_basic").."/ingredients.lua")
-- Boilerplate to support localized strings if intllib mod is installed.
local S = 0
-if (intllib) then
+if rawget(_G, "intllib") then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
else