diff options
author | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-05-03 23:52:55 +0300 |
---|---|---|
committer | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-05-03 23:52:55 +0300 |
commit | 72b3df5a05ccbf26388615708140b6ef47928c73 (patch) | |
tree | b7d8739bb4e455342eccc76fc99c5087f0caa516 | |
parent | 7817204fb26da4cc3538695c9a178a50c33ee567 (diff) |
saw protection
-rw-r--r-- | technic/tools/chainsaw.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/technic/tools/chainsaw.lua b/technic/tools/chainsaw.lua index 2b63281..4f385af 100644 --- a/technic/tools/chainsaw.lua +++ b/technic/tools/chainsaw.lua @@ -445,7 +445,7 @@ local function nonrecursive_dig(pos, remaining_charge, username) end local p = {x = pos.x + offset.x, y = pos.y + y, z = pos.z + offset.z} local n = minetest.get_node(p) - if timber_nodenames[n.name] and not minetest.is_protected(pos, username) then + if timber_nodenames[n.name] and not minetest.is_protected(p, username) then -- Wood found - cut it handle_drops(minetest.get_node_drops(n.name)) minetest.remove_node(p) |