getpos to get_pos, get_pitch/yaw to get_look_vertical/horizontal

This commit is contained in:
TenPlus1 2017-10-09 15:29:04 +01:00
commit 8f02711af4
4 changed files with 8 additions and 8 deletions

View file

@ -29,7 +29,7 @@ if minetest.settings:get_bool("enable_pvp") and protector.pvp then
end
-- no pvp at spawn area
local pos = player:getpos()
local pos = player:get_pos()
if pos.x < statspawn.x + protector.spawn
and pos.x > statspawn.x - protector.spawn