diff options
author | rubenwardy <rubenwardy@gmail.com> | 2015-01-04 17:31:30 +0000 |
---|---|---|
committer | rubenwardy <rubenwardy@gmail.com> | 2015-01-04 17:31:30 +0000 |
commit | ca32dc17ce600a7f7ec268016150bcffb49eb948 (patch) | |
tree | 059c122e45770d7792c785726a2053e40b419d93 /food_basic/init.lua | |
parent | 2897fe334f478d9c80c70bb558fd83b5904e56d4 (diff) |
Fix bug
Diffstat (limited to 'food_basic/init.lua')
-rw-r--r-- | food_basic/init.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/food_basic/init.lua b/food_basic/init.lua index 8e1aa8e..5e84fd4 100644 --- a/food_basic/init.lua +++ b/food_basic/init.lua @@ -11,6 +11,14 @@ print("Food Mod - Version 2.3") dofile(minetest.get_modpath("food_basic").."/support.lua") dofile(minetest.get_modpath("food_basic").."/ingredients.lua") +-- Boilerplate to support localized strings if intllib mod is installed. +local S = 0 +if (intllib) then + dofile(minetest.get_modpath("intllib").."/intllib.lua") + S = intllib.Getter(minetest.get_current_modname()) +else + S = function ( s ) return s end +end -- Register dark chocolate food.module("dark_chocolate", function() |