Add npc_data directory and error logging bugfix

This commit is contained in:
stujones11 2013-09-29 16:56:20 +01:00
parent 5d0c7a2ef2
commit 454572299f
3 changed files with 5 additions and 2 deletions

View File

@ -76,7 +76,7 @@ Clear (unload) named NPC. (requires ownership or server priv)
Permanently unload and delete named NPC. (requires server priv)
### setskin npc_name skin_filename|random
### setskin npc_name skin_filename | random
Set the skin texture of the named NPC.

View File

@ -393,7 +393,7 @@ function npcf:register_npc(name, def)
output:write(minetest.serialize(index))
io.close(output)
else
minetest.log("error", "Failed to add "..filename.." to npc index")
minetest.log("error", "Failed to add "..fields.name.." to npc index")
end
if luaentity.show_nametag then
add_nametag(luaentity)

View File

@ -0,0 +1,3 @@
NPC data directory
------------------
NPC Backup data stored here.