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/ingredients.lua | |
parent | 2897fe334f478d9c80c70bb558fd83b5904e56d4 (diff) |
Fix bug
Diffstat (limited to 'food_basic/ingredients.lua')
-rw-r--r-- | food_basic/ingredients.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/food_basic/ingredients.lua b/food_basic/ingredients.lua index 5d30ff1..cd33fb3 100644 --- a/food_basic/ingredients.lua +++ b/food_basic/ingredients.lua @@ -6,6 +6,15 @@ -- Fallback ingredients -- ===================================== +-- 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 + food.module("wheat", function() minetest.register_craftitem(":food:wheat", { description = S("Wheat"), |