mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-22 05:42:33 +01:00
Fix the chainsaw's protection check
This commit is contained in:
parent
9019ebe496
commit
51c02e9c8a
@ -289,9 +289,9 @@ minetest.register_tool("technic:chainsaw", {
|
|||||||
end
|
end
|
||||||
|
|
||||||
local name = user:get_player_name()
|
local name = user:get_player_name()
|
||||||
if minetest.is_protected(pos, name) then
|
if minetest.is_protected(pointed_thing.under, name) then
|
||||||
minetest.record_protection_violation(pos, name)
|
minetest.record_protection_violation(pointed_thing.under, name)
|
||||||
return current_charge
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Send current charge to digging function so that the
|
-- Send current charge to digging function so that the
|
||||||
|
Loading…
Reference in New Issue
Block a user