getpos to get_pos, get_pitch/yaw to get_look_vertical/horizontal
This commit is contained in:
parent
c81191df2a
commit
8f02711af4
4 changed files with 8 additions and 8 deletions
2
pvp.lua
2
pvp.lua
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue