From 636b0f20df4fef3eef821c23ccc2f606828f5c6f Mon Sep 17 00:00:00 2001 From: Zefram <zefram@fysh.org> Date: Mon, 07 Jul 2014 15:15:05 +0200 Subject: [PATCH] Handheld prospecting tool --- technic/tools/chainsaw.lua | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/technic/tools/chainsaw.lua b/technic/tools/chainsaw.lua index 4a1bfd8..503c010 100644 --- a/technic/tools/chainsaw.lua +++ b/technic/tools/chainsaw.lua @@ -289,9 +289,9 @@ end local name = user:get_player_name() - if minetest.is_protected(pos, name) then - minetest.record_protection_violation(pos, name) - return current_charge + if minetest.is_protected(pointed_thing.under, name) then + minetest.record_protection_violation(pointed_thing.under, name) + return end -- Send current charge to digging function so that the -- Gitblit v1.8.0