Flavor text for ignore nodes

master
Wuzzy 2016-08-12 15:57:30 +02:00
parent 0b425a5eb7
commit d806579cd3
1 changed files with 4 additions and 3 deletions

View File

@ -17,6 +17,8 @@ doc_identifier.identify = function(itemstack, user, pointed_thing)
message = "No help entry for this item could be found."
elseif itype == "error_node" then
message = "No help entry for this block could be found."
elseif itype == "error_ignore" then
message = "This block cannot be identified because the world has not materialized at this point yet. Try again in a few seconds."
elseif itype == "error_object" or itype == "error_unknown_thing" then
message = "No help entry for this object could be found."
elseif itype == "player" then
@ -34,9 +36,8 @@ doc_identifier.identify = function(itemstack, user, pointed_thing)
if minetest.registered_nodes[node.name] ~= nil then
local nodedef = minetest.registered_nodes[node.name]
if(node.name == "ignore") then
show_message(username, "error_node")
end
if doc.entry_exists("nodes", node.name) then
show_message(username, "error_ignore")
elseif doc.entry_exists("nodes", node.name) then
doc.show_entry(username, "nodes", node.name)
else
show_message(username, "error_node")