mirror of
https://codeberg.org/Wuzzy/pride_flags.git
synced 2025-04-30 14:11:43 -04:00
Fix crash when using in protected areas
This commit is contained in:
parent
e774da4fd4
commit
6936be82d0
1 changed files with 1 additions and 1 deletions
2
init.lua
2
init.lua
|
@ -364,7 +364,7 @@ local function cycle_flag( pos, player, cycle_backwards )
|
||||||
local pname = player:get_player_name( )
|
local pname = player:get_player_name( )
|
||||||
if minetest.is_protected( pos, pname ) and not
|
if minetest.is_protected( pos, pname ) and not
|
||||||
minetest.check_player_privs( pname, "protection_bypass") then
|
minetest.check_player_privs( pname, "protection_bypass") then
|
||||||
minetest.register_protection_violation( pos, pname )
|
minetest.record_protection_violation( pos, pname )
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue