Fix load/save error logging

This commit is contained in:
stujones11 2013-10-20 16:48:42 +01:00
parent 7170a98418
commit 5aacdc0b28

View File

@ -434,8 +434,9 @@ function npcf:load(npc_name, pos)
end
end
end
minetest.log("error", "Failed to load "..npc_name)
end
minetest.log("error", "Failed to load "..npc_name)
minetest.log("error", "Attempt to load invalid NPC")
end
function npcf:save(luaentity)
@ -455,8 +456,9 @@ function npcf:save(luaentity)
io.close(output)
return 1
end
minetest.log("error", "Failed to save NPC "..npc_name)
end
minetest.log("error", "Failed to save "..npc_name)
minetest.log("error", "Attempt to save invalid NPC")
end
function npcf:set_animation(luaentity, state)