From f22127a89270eed8d9c17dd16c112222b71b98f1 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Tue, 24 Feb 2015 23:02:49 -0800 Subject: Add support for Protection mods. Should jsut work fine, untested, though. --- init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- cgit v1.2.3