From bacc98d0a9281cbb4522ab7923c2e894d49b03a4 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Tue, 14 May 2019 08:43:55 +0100 Subject: [PATCH 1/3] fix water check for soil (3 horizontal, 1 below) --- README.md | 2 +- soil.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 30e5673..6f57096 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t ### Changelog: -- 1.42 - Soil needs water to be present within 3 blocks horizontally and 2 below to make wet soil, Jack 'o Lanterns now check protection. +- 1.42 - Soil needs water to be present within 3 blocks horizontally and 1 below to make wet soil, Jack 'o Lanterns now check protection. - 1.41 - Each crop has it's own spawn rate (can be changed in farming.conf) - 1.40 - Added Mithril Scythe to quick harvest and replant crops on right-click. Added Hoe's for MoreOres with Toolrank support. - 1.39 - Added Rice, Rye and Oats thanks to Ademants Grains mod. Added Jaffa Cake and multigrain bread. diff --git a/soil.lua b/soil.lua index 6e27d47..d379f5d 100644 --- a/soil.lua +++ b/soil.lua @@ -54,9 +54,9 @@ minetest.register_abm({ -- check if there is water nearby and change soil accordingly -- if minetest.find_node_near(pos, 3, {"group:water"}) then - -- check if water is within 3 nodes horizontally and 2 below + -- check if water is within 3 nodes horizontally and 1 below if #minetest.find_nodes_in_area( - {x = pos.x + 3, y = pos.y + 2, z = pos.z + 3}, + {x = pos.x + 3, y = pos.y - 1, z = pos.z + 3}, {x = pos.x - 3, y = pos.y , z = pos.z - 3}, {"group:water"}) > 0 then From d67b46650614b6bf0bbb2096f3bb9f690dde43fb Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 23 May 2019 19:29:06 +0100 Subject: [PATCH 2/3] changed ipairs to pairs to cover all crops --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index a19c2df..38626ba 100644 --- a/init.lua +++ b/init.lua @@ -269,7 +269,7 @@ end minetest.after(0, function() - for _, node_def in ipairs(minetest.registered_nodes) do + for _, node_def in pairs(minetest.registered_nodes) do register_plant_node(node_def) end end) From 5decae8261bd54277e6af96dac82a6c2120a4874 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 24 May 2019 14:26:09 +0100 Subject: [PATCH 3/3] remove duplicate line --- farming.conf_example | 1 - 1 file changed, 1 deletion(-) diff --git a/farming.conf_example b/farming.conf_example index d108bb5..9338142 100644 --- a/farming.conf_example +++ b/farming.conf_example @@ -30,7 +30,6 @@ farming.pineapple = 0.001 farming.peas = 0.001 farming.beetroot = 0.001 farming.grains = true -- true or false only -farming.rarety = 0.002 -- default rarety of crops on map (higher number = more crops) farming.rarety = 0.002