forked from mtcontrib/farming
Crops grow on any node with soil=3 group set to be compatible with other mods.
This commit is contained in:
parent
41893cb74e
commit
e5d4bb9c87
6
init.lua
6
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
|
by TenPlus1
|
||||||
NEW growing routine by prestidigitator
|
NEW growing routine by prestidigitator
|
||||||
auto-refill by crabman77
|
auto-refill by crabman77
|
||||||
@ -420,9 +420,9 @@ function farming.plant_growth_timer(pos, elapsed, node_name)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
else
|
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
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user