1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-06-28 14:16:18 +02:00

Refine GUI.

This commit is contained in:
Uberi
2013-12-12 15:34:05 -05:00
parent dbc2348014
commit 6c03ab9c4a
3 changed files with 138 additions and 173 deletions

View File

@ -19,7 +19,7 @@ end
--determines whether `nodename` is a valid node name, returning a boolean
worldedit.normalize_nodename = function(nodename)
local fullname = ItemStack({name=nodename}):get_name() --resolve aliases of node names to full names
if minetest.registered_nodes[fullname] then --directly found node name or alias of nodename
if minetest.registered_nodes[fullname] or fullname == "air" then --directly found node name or alias of nodename
return fullname
end
for key, value in pairs(minetest.registered_nodes) do