diff options
author | Uberi <azhang9@gmail.com> | 2013-12-12 15:34:05 -0500 |
---|---|---|
committer | Uberi <azhang9@gmail.com> | 2013-12-12 15:34:05 -0500 |
commit | 6c03ab9c4a2dbe6f47dbc9d065cf9574df3f3710 (patch) | |
tree | 42cb1389dcb10c652a0b3ac6cc73366cce2d1a36 /worldedit_commands | |
parent | dbc23480147e1ea4308ed92c01922a2ada0cf943 (diff) |
Refine GUI.
Diffstat (limited to 'worldedit_commands')
-rw-r--r-- | worldedit_commands/init.lua | 2 |
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
|