summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@mirzakhani.gpcf.eu>2018-05-03 22:54:14 +0200
committerroot <root@mirzakhani.gpcf.eu>2018-05-03 22:54:14 +0200
commitb755a129ce8673825cf720501d724d191efdf217 (patch)
tree160ba7cbc1b6fd45bffbaf52c40fdf7ad15793bb
parent2b04458a24d8cfc88d233a8f0eb41df45716b2e1 (diff)
parent72b3df5a05ccbf26388615708140b6ef47928c73 (diff)
Merge https://github.com/h-v-smacker/technic
-rw-r--r--technic/tools/chainsaw.lua2
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)