summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index b008318..efa24fa 100644
--- a/init.lua
+++ b/init.lua
@@ -296,6 +296,11 @@ local function sed()
end
end
+ -- protected?
+ if minetest.is_protected(pos, "mod:sedimentology") then
+ return
+ end
+
local node = minetest.get_node(pos)
-- do we handle this material?
@@ -360,6 +365,10 @@ local function sed()
if lowest < pos.y then
local tpos = {x = pos.x + lowesto.x, y = lowest, z = pos.z + lowesto.z}
+ if minetest.is_protected(tpos, "mod:sedimentology") then
+ return
+ end
+
if not roll(mprops[node.name].r) then
local tnode = minetest.get_node(tpos)