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
|
||||
local file = io.open(minetest.get_worldpath().."/quests", "r")
|
||||
if file then
|
||||
print "Reading quests..."
|
||||
minetest.log("action", "Reading quests...")
|
||||
quests = minetest.deserialize(file:read("*all"))
|
||||
file:close()
|
||||
end
|
||||
@ -46,7 +46,7 @@ end
|
||||
|
||||
-- write the quests to file
|
||||
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 questname, questspecs in pairs(quest) do
|
||||
if (questspecs.finished) then
|
||||
|
Loading…
Reference in New Issue
Block a user