summaryrefslogtreecommitdiff
path: root/soil.lua
diff options
context:
space:
mode:
Diffstat (limited to 'soil.lua')
-rw-r--r--soil.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/soil.lua b/soil.lua
index b459273..e1863bc 100644
--- a/soil.lua
+++ b/soil.lua
@@ -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