From 8f02711af43c1b438fea56a270e67985220d394e Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 9 Oct 2017 15:29:04 +0100 Subject: getpos to get_pos, get_pitch/yaw to get_look_vertical/horizontal --- pvp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pvp.lua') 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 -- cgit v1.2.3