From 68b6f42f4cc9c6f27a248f651261ad21878332b6 Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Sat, 30 Jul 2016 12:51:12 +0200 Subject: [PATCH] Moved support of farming redo rhubarb & blueberry from food_basic to here Moved support of ethereal strawberry from food_basic to here --- depends.txt | 1 - init.lua | 8 +++++--- textures/food_strawberry.png | Bin 0 -> 250 bytes 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 textures/food_strawberry.png diff --git a/depends.txt b/depends.txt index 2b00a3b..6428f68 100644 --- a/depends.txt +++ b/depends.txt @@ -1,2 +1 @@ food_basic -bushes? diff --git a/init.lua b/init.lua index c2bcc57..ebbffa0 100644 --- a/init.lua +++ b/init.lua @@ -24,11 +24,13 @@ end food.support("strawberry", {"farming_plus:strawberry_item", "plantlib:strawberry", "bushes:strawberry"}) food.support("rhubarb", "farming_plus:rhubarb_item") + if farming and farming.mod == "redo" then - food.disable_if("farming", "rhubarb") - food.disable_if("farming", "blueberry") + food.support("rhubarb", "farming:rhubarb") + food.support("blueberry", "farming:blueberries") end -food.disable_if("ethereal", "strawberry") + +food.support("strawberry", "ethereal:strawberry") if minetest.setting_get("food_sweet_use_2d")==nil then minetest.setting_set("food_sweet_use_2d", "1") diff --git a/textures/food_strawberry.png b/textures/food_strawberry.png new file mode 100644 index 0000000000000000000000000000000000000000..0a80f45ddf486546c7eb9556b86503843eaa5183 GIT binary patch literal 250 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^RlY zSq#SNHJ^bLXMsm#F$061G6*wPEVVBK3bL1Y`ns~;;gILCv