1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 01:30:38 +01:00

Partially-merge Don't dry out soil if unloaded blocks are nearby

This commit is contained in:
LeMagnesium 2014-12-14 23:41:07 +01:00
parent af82dbf873
commit adc99333fb

View File

@ -45,7 +45,8 @@ minetest.register_abm({
end
-- check if there is water nearby and change soil accordingly
if minetest.find_node_near(pos, 3, {"group:water"}) then
if minetest.find_node_near(pos, 3, {"group:water"}) and
minetest.find_node_near(pos, 3, {"ignore"}) then
if node.name == "farming:soil" then
minetest.set_node(pos, {name="farming:soil_wet"})
end