ShadowNinja
2014-06-26 51c02e9c8a7b95befb5134a71f61f8ae92804ee5
Fix the chainsaw's protection check
1 files modified
6 ■■■■ changed files
technic/tools/chainsaw.lua 6 ●●●● patch | view | raw | blame | history
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