diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-06-26 16:53:38 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-06-26 16:53:38 -0400 |
commit | 51c02e9c8a7b95befb5134a71f61f8ae92804ee5 (patch) | |
tree | 76e9acf5d0a0242559c592df0e4a67c2647c721c | |
parent | 9019ebe496c868589e7eeed4450e0903953a0906 (diff) |
Fix the chainsaw's protection check
-rw-r--r-- | 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 @@ minetest.register_tool("technic:chainsaw", { 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 |