From 5aacdc0b285a3269b9102288e6b09a49d2342d46 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Sun, 20 Oct 2013 16:48:42 +0100 Subject: [PATCH] Fix load/save error logging --- npcf/npcf.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/npcf/npcf.lua b/npcf/npcf.lua index 3ba314b..d404f06 100644 --- a/npcf/npcf.lua +++ b/npcf/npcf.lua @@ -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)