From 6936be82d0ed6b7778c2cd8137763cf2b4b91be3 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 29 Sep 2022 19:19:21 +0200 Subject: [PATCH] Fix crash when using in protected areas --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index cfed1aa..5b3bb57 100644 --- a/init.lua +++ b/init.lua @@ -364,7 +364,7 @@ local function cycle_flag( pos, player, cycle_backwards ) local pname = player:get_player_name( ) if minetest.is_protected( pos, pname ) and not minetest.check_player_privs( pname, "protection_bypass") then - minetest.register_protection_violation( pos, pname ) + minetest.record_protection_violation( pos, pname ) return end