mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-29 12:47:30 +01:00
Fix crash when dig banner in protected area
This commit is contained in:
parent
47389902bc
commit
94591c8b52
@ -51,7 +51,7 @@ local on_dig_banner = function(pos, node, digger)
|
||||
-- Check protection
|
||||
local name = digger:get_player_name()
|
||||
if minetest.is_protected(pos, name) then
|
||||
minetest.register_protection_violation(pos, name)
|
||||
minetest.record_protection_violation(pos, name)
|
||||
return
|
||||
end
|
||||
-- Drop item
|
||||
|
Loading…
Reference in New Issue
Block a user