Add npc_data directory and error logging bugfix
This commit is contained in:
parent
5d0c7a2ef2
commit
454572299f
@ -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.
|
||||
|
||||
|
@ -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)
|
||||
|
3
npcf/npcs/npc_data/README.txt
Normal file
3
npcf/npcs/npc_data/README.txt
Normal file
@ -0,0 +1,3 @@
|
||||
NPC data directory
|
||||
------------------
|
||||
NPC Backup data stored here.
|
Loading…
x
Reference in New Issue
Block a user