From ca32dc17ce600a7f7ec268016150bcffb49eb948 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 4 Jan 2015 17:31:30 +0000 Subject: Fix bug --- food_basic/ingredients.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'food_basic/ingredients.lua') 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"), -- cgit v1.2.3