Fix check player privs
This commit is contained in:
parent
863fd6e987
commit
778b6e8b8c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user