1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-06-29 23:01:00 +02:00

Update: added check for unloaded map

This commit is contained in:
tenplus1
2014-12-10 10:51:27 +00:00
parent 47bee0ee48
commit 9ffbbf4c0e
3 changed files with 7 additions and 2 deletions

View File

@ -44,6 +44,11 @@ minetest.register_abm({
minetest.set_node(pos, {name="default:dirt"})
end
-- if map around soil not loaded then skip until loaded
if minetest.find_node_near(pos, 3, {"ignore"}) then
return
end
-- check if there is water nearby and change soil accordingly
if minetest.find_node_near(pos, 3, {"group:water"}) then
if node.name == "farming:soil" then