summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@mirzakhani.gpcf.eu>2018-05-03 22:52:27 +0200
committerroot <root@mirzakhani.gpcf.eu>2018-05-03 22:52:27 +0200
commit2b04458a24d8cfc88d233a8f0eb41df45716b2e1 (patch)
treef52b483bdcf269804ed25b682ea789572f4f1f03
parentb710c0d46eb182a7606e75bf23a1a2d423ba6bc0 (diff)
parent7817204fb26da4cc3538695c9a178a50c33ee567 (diff)
Merge https://github.com/h-v-smacker/technic
-rw-r--r--technic/tools/chainsaw.lua2
-rw-r--r--technic/tools/planter.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/technic/tools/chainsaw.lua b/technic/tools/chainsaw.lua
index 39423fb..2b63281 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] then
+ if timber_nodenames[n.name] and not minetest.is_protected(pos, username) then
-- Wood found - cut it
handle_drops(minetest.get_node_drops(n.name))
minetest.remove_node(p)
diff --git a/technic/tools/planter.lua b/technic/tools/planter.lua
index 0b1a2fe..fc3e1ec 100644
--- a/technic/tools/planter.lua
+++ b/technic/tools/planter.lua
@@ -7,7 +7,7 @@
-- Configuration
-- Intended to hold as much as the chainsaw, 20000 units
local planter_max_charge = 20000
--- Can remove a curious number of objects
+-- Cost of planting action
local planter_charge_per_object = 25