summaryrefslogtreecommitdiff
path: root/worldedit_commands
diff options
context:
space:
mode:
authorUberi <azhang9@gmail.com>2013-12-12 15:34:05 -0500
committerUberi <azhang9@gmail.com>2013-12-12 15:34:05 -0500
commit6c03ab9c4a2dbe6f47dbc9d065cf9574df3f3710 (patch)
tree42cb1389dcb10c652a0b3ac6cc73366cce2d1a36 /worldedit_commands
parentdbc23480147e1ea4308ed92c01922a2ada0cf943 (diff)
Refine GUI.
Diffstat (limited to 'worldedit_commands')
-rw-r--r--worldedit_commands/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua
index 3ce26eb..62b9fa5 100644
--- a/worldedit_commands/init.lua
+++ b/worldedit_commands/init.lua
@@ -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