Update functions.lua

This commit is contained in:
Panquesito7 2019-08-22 19:39:59 -05:00 committed by GitHub
parent 936b528a4a
commit fa391d1a08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -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 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=""}) inv:add_item("main", {name=name, count=1, wear=0, metadata=""})
else 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 end
end end
@ -487,10 +487,9 @@ function fishing_setting.func.load_planned()
end end
end end
end end
fishing_setting.func.load_planned() fishing_setting.func.load_planned()
function fishing_setting.func.save_planned() function fishing_setting.func.save_planned()
local input = io.open(fishing_setting.file_planned, "w") local input = io.open(fishing_setting.file_planned, "w")
if input then if input then
@ -824,4 +823,3 @@ function fishing_setting.func.tick()
end end
end end
end end