From fa391d1a0874d7d361b33cf7800e09eebe26dc21 Mon Sep 17 00:00:00 2001 From: Panquesito7 <51391473+Panquesito7@users.noreply.github.com> Date: Thu, 22 Aug 2019 19:39:59 -0500 Subject: [PATCH] Update functions.lua --- functions.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/functions.lua b/functions.lua index 8f7e8ce..47fe3d5 100755 --- a/functions.lua +++ b/functions.lua @@ -370,7 +370,7 @@ function fishing_setting.func.add_to_trophies(player, fish, desc) if inv:room_for_item("main", {name=name, count=1, wear=0, metadata=""}) then inv:add_item("main", {name=name, count=1, wear=0, metadata=""}) else - minetest.spawn_item(player:getpos(), {name=name, count=1, wear=0, metadata=""}) + minetest.spawn_item(player:get_pos(), {name=name, count=1, wear=0, metadata=""}) end end end @@ -487,10 +487,9 @@ function fishing_setting.func.load_planned() end end end + fishing_setting.func.load_planned() - - function fishing_setting.func.save_planned() local input = io.open(fishing_setting.file_planned, "w") if input then @@ -824,4 +823,3 @@ function fishing_setting.func.tick() end end end -