summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-05-24 21:14:16 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-05-24 21:14:16 +0100
commite5d4bb9c87ed4045c5d033140fad7ec7c5542798 (patch)
treeb6023eb74e920d5949571a6f9a9368b57be135f2 /init.lua
parent41893cb74ea33b624e937d371b2fd8d57ea98037 (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.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index 122333e..71fb39c 100644
--- a/init.lua
+++ b/init.lua
@@ -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