summaryrefslogtreecommitdiff
path: root/admin.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 /admin.lua
parentc81191df2ab8b0f6f79692278ca3035779d7913b (diff)
getpos to get_pos, get_pitch/yaw to get_look_vertical/horizontal
Diffstat (limited to 'admin.lua')
-rw-r--r--admin.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin.lua b/admin.lua
index 4d09a90..e73412c 100644
--- a/admin.lua
+++ b/admin.lua
@@ -121,7 +121,7 @@ minetest.register_chatcommand("protector_show", {
func = function(name, param)
local player = minetest.get_player_by_name(name)
- local pos = player:getpos()
+ local pos = player:get_pos()
local r = protector.radius -- max protector range.
-- find the protector nodes