From 80cf6b3799360690af92e5ed8a00313cd4c1ea31 Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Fri, 25 Nov 2016 21:33:59 +0100 Subject: [PATCH] food_basic : Update support of mobs_redo with mobs_animal. If mobs is loaded without mobs_animal then food:soup_chicken_raw cannot be crafted. --- food_basic/depends.txt | 1 + food_basic/support.lua | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/food_basic/depends.txt b/food_basic/depends.txt index 05df110..222b93e 100644 --- a/food_basic/depends.txt +++ b/food_basic/depends.txt @@ -12,6 +12,7 @@ jkanimals? jkfarming? my_mobs? mobs? +mobs_animal? mobfcooking? mtfoods? plantlib? diff --git a/food_basic/support.lua b/food_basic/support.lua index 9bb8e6d..0161259 100644 --- a/food_basic/support.lua +++ b/food_basic/support.lua @@ -82,5 +82,9 @@ else end if minetest.get_modpath("mobs") and mobs.mod == "redo" then - food.support("chicken", "mobs:chicken_cooked") + if minetest.get_modpath("mobs_animal") then + food.support("chicken", "mobs:chicken_cooked") + else + food.support("chicken", "mobs:meat") + end end