mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-03-28 15:20:47 +01:00
Partially-merge Don't dry out soil if unloaded blocks are nearby
This commit is contained in:
parent
af82dbf873
commit
adc99333fb
@ -45,7 +45,8 @@ minetest.register_abm({
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- check if there is water nearby and change soil accordingly
|
-- 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
|
if node.name == "farming:soil" then
|
||||||
minetest.set_node(pos, {name="farming:soil_wet"})
|
minetest.set_node(pos, {name="farming:soil_wet"})
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user