Flavor text for ignore nodes
This commit is contained in:
parent
0b425a5eb7
commit
d806579cd3
7
init.lua
7
init.lua
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user