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:
parent
af82dbf873
commit
adc99333fb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user