summaryrefslogtreecommitdiff
path: root/worldedit_commands/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'worldedit_commands/init.lua')
-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