From c5d7e77828b4f0e2df47a9e02bd9af79befb9d97 Mon Sep 17 00:00:00 2001 From: upsilon Date: Sun, 15 Jan 2017 12:06:16 +0100 Subject: [PATCH] Remove useless calls to minetest.is_protected in on_hit functions (Already checked in the generic API) --- registration.lua | 6 ------ 1 file changed, 6 deletions(-) diff --git a/registration.lua b/registration.lua index f75dacf..7517e0e 100644 --- a/registration.lua +++ b/registration.lua @@ -49,9 +49,6 @@ if get_setting("dig_arrow") then if not node then return end - if minetest.is_protected(pos, hitter:get_player_name()) then - return false, "Area is protected" - end return minetest.dig_node(pos) end) end @@ -115,9 +112,6 @@ if get_setting("build_arrow") then minetest.log("warning", "[throwing] BUG: node at last_pos was not air") return end - if minetest.is_protected(last_pos, hitter:get_player_name()) then - return false, "Area is protected" - end return minetest.place_node(last_pos, {name="default:obsidian_glass"}) end) end