mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-25 10:52:25 +01:00
Sugar canes now also check for frosted ice
This commit is contained in:
parent
a7e40050d0
commit
d1ab9e4f86
@ -57,7 +57,7 @@ mcl_core.grow_reeds = function(pos, node)
|
||||
pos.y = pos.y-1
|
||||
local name = minetest.get_node(pos).name
|
||||
if minetest.get_node_group(name, "soil_sugarcane") ~= 0 then
|
||||
if minetest.find_node_near(pos, 1, {"group:water"}) == nil then
|
||||
if minetest.find_node_near(pos, 1, {"group:water"}) == nil and minetest.find_node_neat(pos, 1, {"group:frosted_ice"}) == nil then
|
||||
return
|
||||
end
|
||||
pos.y = pos.y+1
|
||||
|
Loading…
Reference in New Issue
Block a user