Fix farmland getting destroyed early

This commit is contained in:
Wuzzy 2017-05-14 21:53:34 +02:00
parent 32f6f4d3bf
commit f68150528d
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ minetest.register_abm({
-- Turn back into dirt when covered by solid node -- 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}) local above_node = minetest.get_node_or_nil({x=pos.x,y=pos.y+1,z=pos.z})
if above_node then 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" node.name = "mcl_core:dirt"
minetest.set_node(pos, node) minetest.set_node(pos, node)
return return