mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-22 16:09:33 +01:00
Fix farmland getting destroyed early
This commit is contained in:
parent
32f6f4d3bf
commit
f68150528d
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ minetest.register_abm({
|
|||
-- Turn back into dirt when covered by solid node
|
||||
local above_node = minetest.get_node_or_nil({x=pos.x,y=pos.y+1,z=pos.z})
|
||||
if above_node then
|
||||
if minetest.get_item_group(above_node.name, "solid") then
|
||||
if minetest.get_item_group(above_node.name, "solid") ~= 0 then
|
||||
node.name = "mcl_core:dirt"
|
||||
minetest.set_node(pos, node)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue