summaryrefslogtreecommitdiff
path: root/pvp.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-10-09 15:29:04 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-10-09 15:29:04 +0100
commit8f02711af43c1b438fea56a270e67985220d394e (patch)
treef53d3fadd66826f7e209d6a28542c59880f53b80 /pvp.lua
parentc81191df2ab8b0f6f79692278ca3035779d7913b (diff)
getpos to get_pos, get_pitch/yaw to get_look_vertical/horizontal
Diffstat (limited to 'pvp.lua')
-rw-r--r--pvp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/pvp.lua b/pvp.lua
index ef380bc..1382219 100644
--- a/pvp.lua
+++ b/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