From 67cf59e66e5b86aaf8c8b3b017e3799faf021d4b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 22 Mar 2019 16:49:17 +0100 Subject: [PATCH] Update deprecated functions --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index f1ce476..16e34b1 100644 --- a/init.lua +++ b/init.lua @@ -723,7 +723,7 @@ end -- But the boundaries can optionally be set explicitly with pos1 and pos2. function schemedit.display_node_probs_region(player, pos1, pos2) local playername = player:get_player_name() - local pos = vector.round(player:getpos()) + local pos = vector.round(player:get_pos()) local dist = 5 -- Default: 5 nodes away from player in any direction @@ -900,7 +900,7 @@ minetest.register_tool("schemedit:probtool", { -- Simple use if not ctrl.sneak then -- Open dialog to change the probability to apply to nodes - schemedit.show_formspec(user:getpos(), user, "probtool", true) + schemedit.show_formspec(user:get_pos(), user, "probtool", true) -- Use + sneak else