summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2015-05-08 18:32:50 +0100
committerrubenwardy <rubenwardy@gmail.com>2015-05-08 18:32:50 +0100
commit80990e12e1238c266087e429a15408d8568a3c03 (patch)
treebc6fd94c4b56ef0878cb0f3c7e81f2f45afee423
parent4d6a3a8a0227bce22ac94a9e491ea894d521fb10 (diff)
parent244e0e3be6451cf43fb7e45990c2702aad8ba063 (diff)
Merge pull request #20 from LeMagnesium/intllib_global_variables
Replaced calls for IntLlib's global variable
-rw-r--r--food_basic/ingredients.lua2
-rw-r--r--food_basic/init.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/food_basic/ingredients.lua b/food_basic/ingredients.lua
index cd33fb3..27c5feb 100644
--- a/food_basic/ingredients.lua
+++ b/food_basic/ingredients.lua
@@ -8,7 +8,7 @@
-- 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
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