diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2015-02-24 23:02:49 -0800 |
---|---|---|
committer | Auke Kok <auke-jan.h.kok@intel.com> | 2015-02-24 23:02:49 -0800 |
commit | f22127a89270eed8d9c17dd16c112222b71b98f1 (patch) | |
tree | aaaf5d9a3cf5386141706732f4b0254369801fc7 | |
parent | 2fee75166fa3515bac52b9550eb8e60678c4ab73 (diff) |
Add support for Protection mods.
Should jsut work fine, untested, though.
-rw-r--r-- | init.lua | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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) |