1
0
Fork 0

Fix crash when dig banner in protected area

This commit is contained in:
Wuzzy 2019-03-04 06:07:44 +01:00
parent 47389902bc
commit 94591c8b52
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ local on_dig_banner = function(pos, node, digger)
-- Check protection -- Check protection
local name = digger:get_player_name() local name = digger:get_player_name()
if minetest.is_protected(pos, name) then if minetest.is_protected(pos, name) then
minetest.register_protection_violation(pos, name) minetest.record_protection_violation(pos, name)
return return
end end
-- Drop item -- Drop item