Use minetest.log instead of print
This commit is contained in:
parent
ed5b33947b
commit
58b0a3cf39
4
init.lua
4
init.lua
@ -1,7 +1,7 @@
|
|||||||
-- reading previous quests
|
-- reading previous quests
|
||||||
local file = io.open(minetest.get_worldpath().."/quests", "r")
|
local file = io.open(minetest.get_worldpath().."/quests", "r")
|
||||||
if file then
|
if file then
|
||||||
print "Reading quests..."
|
minetest.log("action", "Reading quests...")
|
||||||
quests = minetest.deserialize(file:read("*all"))
|
quests = minetest.deserialize(file:read("*all"))
|
||||||
file:close()
|
file:close()
|
||||||
end
|
end
|
||||||
@ -46,7 +46,7 @@ end
|
|||||||
|
|
||||||
-- write the quests to file
|
-- write the quests to file
|
||||||
minetest.register_on_shutdown(function()
|
minetest.register_on_shutdown(function()
|
||||||
print "Writing quests to file"
|
minetest.log("action", "Writing quests to file")
|
||||||
for playername, quest in pairs(quests.active_quests) do
|
for playername, quest in pairs(quests.active_quests) do
|
||||||
for questname, questspecs in pairs(quest) do
|
for questname, questspecs in pairs(quest) do
|
||||||
if (questspecs.finished) then
|
if (questspecs.finished) then
|
||||||
|
Loading…
Reference in New Issue
Block a user