Skip to content

Commit

Permalink
Fix check player privs
Browse files Browse the repository at this point in the history
  • Loading branch information
S-S-X committed Mar 6, 2021
1 parent 863fd6e commit 778b6e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spacecannon.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 778b6e8

Please sign in to comment.