Update functions.lua

このコミットが含まれているのは:
Panquesito7 2019-08-22 19:39:59 -05:00 committed by GitHub
コミット fa391d1a08
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更2行の追加4行の削除

ファイルの表示

@ -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