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

@ -11,7 +11,7 @@ minetest.register_craftitem("protector:tool", {
local name = user:get_player_name()
-- check for protector near player (2 block radius)
local pos = user:getpos()
local pos = user:get_pos()
local pp = minetest.find_nodes_in_area(
vector.subtract(pos, 2), vector.add(pos, 2),
{"protector:protect", "protector:protect2"})