summaryrefslogtreecommitdiff
path: root/pvp.lua
diff options
context:
space:
mode:
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