Fix check player privs

This commit is contained in:
SX 2021-03-06 19:46:57 +02:00 committed by GitHub
parent 863fd6e987
commit 778b6e8b8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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