replace global "ing" by more meaningful global mtfoods.ingredients variable

This commit is contained in:
Alexander Weber 2018-05-22 22:28:23 +02:00
parent 7893936328
commit ae3eb42c9b
4 changed files with 7 additions and 2 deletions

View File

@ -97,6 +97,7 @@ minetest.register_craftitem("mtfoods:strawberry_shortcake", {
--}) --})
-- Crafting -- -- Crafting --
local ing = mtfoods.ingredients
minetest.register_craft({ minetest.register_craft({
output = "mtfoods:dandelion_milk 2", output = "mtfoods:dandelion_milk 2",

View File

@ -1,3 +1,5 @@
local ing = mtfoods.ingredients
-- Flute Glass -- -- Flute Glass --
minetest.register_craftitem("mtfoods:glass_flute", { minetest.register_craftitem("mtfoods:glass_flute", {
description = "Glass Flute", description = "Glass Flute",

View File

@ -1,6 +1,7 @@
-- Foods -- -- Foods --
--MLT-- --MLT--
local ing = mtfoods.ingredients
minetest.register_craftitem( "mtfoods:mlt_burger", { minetest.register_craftitem( "mtfoods:mlt_burger", {
description = "MLT (Mutton, Lettuce, Tomato)", description = "MLT (Mutton, Lettuce, Tomato)",

View File

@ -1,13 +1,14 @@
--MTFoods-- --MTFoods--
--By: Philipbenr-- --By: Philipbenr--
--Licence: GPLv3-- --Licence: GPLv3--
mtfoods = {}
local orange_ing = "farming_plus:orange" local orange_ing = "farming_plus:orange"
if minetest.get_modpath("ethereal") then if minetest.get_modpath("ethereal") then
orange_ing = "ethereal:orange" orange_ing = "ethereal:orange"
end end
ing = { mtfoods.ingredients = {
orange = orange_ing, orange = orange_ing,
apple = "default:apple", apple = "default:apple",
meat = "mobs:meat", meat = "mobs:meat",
@ -26,7 +27,7 @@ ing = {
-- Add support for the food mod's ingredient list -- Add support for the food mod's ingredient list
if minetest.get_modpath("food") then if minetest.get_modpath("food") then
ing = { mtfoods.ingredients = {
orange = "group:food_orange", orange = "group:food_orange",
apple = "default:apple", apple = "default:apple",
meat = "group:food_meat", meat = "group:food_meat",