diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-05-24 21:14:16 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-05-24 21:14:16 +0100 |
commit | e5d4bb9c87ed4045c5d033140fad7ec7c5542798 (patch) | |
tree | b6023eb74e920d5949571a6f9a9368b57be135f2 /init.lua | |
parent | 41893cb74ea33b624e937d371b2fd8d57ea98037 (diff) |
Crops grow on any node with soil=3 group set to be compatible with other mods.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ --[[ - Minetest Farming Redo Mod 1.22 (31st March 2016) + Minetest Farming Redo Mod 1.22 (24th May 2016) by TenPlus1 NEW growing routine by prestidigitator auto-refill by crabman77 @@ -420,9 +420,9 @@ function farming.plant_growth_timer(pos, elapsed, node_name) return true end else - local under = minetest.get_node_or_nil({ x = pos.x, y = pos.y - 1, z = pos.z }) + local under = minetest.get_node({ x = pos.x, y = pos.y - 1, z = pos.z }) - if not under or under.name ~= "farming:soil_wet" then + if minetest.get_item_group(under.name, "soil") < 2 then return true end end |