mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
Reset farmland, etc. to dirt when gourd grows on top
This commit is contained in:
parent
80a0e32f4b
commit
5907d43179
1 changed files with 2 additions and 2 deletions
|
@ -343,8 +343,8 @@ function mcl_farming:add_gourd(full_unconnected_stem, connected_stem_basename, s
|
||||||
else
|
else
|
||||||
minetest.add_node(blockpos, {name=gourd_itemstring})
|
minetest.add_node(blockpos, {name=gourd_itemstring})
|
||||||
end
|
end
|
||||||
-- Reset farmland to dirt when the gourd grows on top
|
-- Reset farmland, etc. to dirt when the gourd grows on top
|
||||||
if floor.name == "mcl_farming:soil" or floor.name == "mcl_farming:soil_wet" then
|
if minetest.get_item_group(floor.name, "dirtifies_below_solid") == 1 then
|
||||||
minetest.set_node(floorpos, {name = "mcl_core:dirt"})
|
minetest.set_node(floorpos, {name = "mcl_core:dirt"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue