summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index b4f4660..a048df3 100644
--- a/init.lua
+++ b/init.lua
@@ -55,6 +55,9 @@ function doc.new_entry(category_id, entry_id, def)
def.hidden = hidden
end
cat.entry_count = doc.data.categories[category_id].entry_count + 1
+ if def.name == nil or def.name == "" then
+ minetest.log("warning", "[doc] Nameless entry added. Entry ID: "..entry_id)
+ end
cat.entries[entry_id] = def
return true
else