summaryrefslogtreecommitdiff
path: root/tool.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 /tool.lua
parentc81191df2ab8b0f6f79692278ca3035779d7913b (diff)
getpos to get_pos, get_pitch/yaw to get_look_vertical/horizontal
Diffstat (limited to 'tool.lua')
-rw-r--r--tool.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool.lua b/tool.lua
index d02fc73..864c35f 100644
--- a/tool.lua
+++ b/tool.lua
@@ -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"})