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