mirror of
https://github.com/rubenwardy/food.git
synced 2025-06-28 13:56:04 +02:00
Fix bug
This commit is contained in:
@ -3,10 +3,8 @@ animalmaterials?
|
||||
bushes_classic?
|
||||
default?
|
||||
docfarming?
|
||||
diet?
|
||||
farming?
|
||||
farming_plus?
|
||||
hud?
|
||||
intllib?
|
||||
jkanimals?
|
||||
jkfarming?
|
||||
|
@ -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"),
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user