diff --git a/mods/throwing/dig_arrow.lua b/mods/throwing/dig_arrow.lua index 119f4c40..ecfa3828 100755 --- a/mods/throwing/dig_arrow.lua +++ b/mods/throwing/dig_arrow.lua @@ -69,11 +69,11 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime) if node.name ~= "air" and not string.find(node.name, "water") then if node.name ~= "ignore" and minetest.get_item_group(node.name, "unbreakable") == 0 and not minetest.is_protected(self.lastpos, self.player) - and node.diggable ~= false then + and node.diggable ~= false + and areas:canInteract(pos, "") then minetest.set_node(pos, {name = "air"}) minetest.add_item(self.lastpos, node.name) end - minetest.add_item(self.lastpos, "throwing:arrow_dig") self.object:remove() return end diff --git a/mods/throwing/teleport_arrow.lua b/mods/throwing/teleport_arrow.lua index 4b2b87e8..117ee845 100755 --- a/mods/throwing/teleport_arrow.lua +++ b/mods/throwing/teleport_arrow.lua @@ -54,7 +54,6 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime) local player = minetest.get_player_by_name(self.player) if player then player:setpos(pos) - player:get_inventory():add_item("main", ItemStack("default:stick 2")) end end self.object:remove() @@ -70,7 +69,6 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime) local player = minetest.get_player_by_name(self.player) if player then player:setpos(self.lastpos) - player:get_inventory():add_item("main", ItemStack("default:stick 2")) end end self.object:remove()