diff --git a/spacecannon.lua b/spacecannon.lua index 113a04b..4ffb888 100644 --- a/spacecannon.lua +++ b/spacecannon.lua @@ -1,6 +1,6 @@ spacecannon.can_shoot = function(pos, playername) - local has_unrestricted_priv = playername and minetest.check_player_priv(playername, "spacecannon_unrestricted") + local has_unrestricted_priv = playername and minetest.check_player_privs(playername, "spacecannon_unrestricted") -- only allow shooting in space or with priv return has_unrestricted_priv or pos.y > 1000 end