Remove some debugging info

This commit is contained in:
Brandon 2015-07-06 14:35:29 -05:00
parent 0fe30ace0d
commit ee2a33e005
3 changed files with 2 additions and 9 deletions

View File

@ -345,13 +345,13 @@ end
function default.deserialize_from_file(filename)
local f = io.open(filename, "r")
if f==nil then
minetest.log("error","File "..filename.." not found, returning empty table")
--minetest.log("error","File "..filename.." not found, returning empty table")
return {}
end
local t = f:read("*all")
f:close()
if t=="" or t==nil then
minetest.log("error","File "..filename.." is blank, returning empty table")
--minetest.log("error","File "..filename.." is blank, returning empty table")
return {}
end
return minetest.deserialize(t)

View File

@ -620,7 +620,6 @@ local function mg_generate(minp, maxp, emin, emax, vm)
--vm:update_liquids()
vm:write_to_map(data)
minetest.log("action","Map generated successfully, seeing if treasure needs to be placed")
quests.treasure.on_generated(minp,maxp,emin,emax,vm)
local meta

View File

@ -74,7 +74,6 @@ local treasures = {
local max_exp = 1000
quests.treasure.generateQuest = function()
minetest.log("action","Generate quest!")
quests.treasure.data.quest_start = os.time()
quests.treasure.data.quest_end = nil
quests.treasure.data.completed = false
@ -108,11 +107,9 @@ minetest.log("action","Generate quest!")
default.serialize_to_file(quest_file,quests.treasure.data)
if allair == true then
minetest.log("action","Place treasure on mapgen")
quests.treasure.data.do_on_generate = true
return
end
minetest.log("action","Place treasure now!")
quests.treasure.place_treasure({x=tx,y=0,z=tz},vm,e1,e2)
end
@ -170,7 +167,6 @@ function is_ground_node(nodeid)
end
quests.treasure.place_treasure = function (pos,vm,minp,maxp)
minetest.log("action","Placing treasure")
local c_air = minetest.get_content_id("air")
local c_water = minetest.get_content_id("default:water_source")
local prevnode = nil
@ -196,7 +192,6 @@ quests.treasure.place_treasure = function (pos,vm,minp,maxp)
vm:update_map()
quests.treasure.set_inventory({x=tx,y=ty-depth,z=tz})
default.serialize_to_file(quest_file,quests.treasure.data)
minetest.log("action","Treasure placed successfully!")
return
end
end
@ -206,7 +201,6 @@ quests.treasure.place_treasure = function (pos,vm,minp,maxp)
prevnode = nil
end
end
minetest.log("error","Unable to place treasure")
quests.treasure.data.do_on_generate = true
end