diff options
author | sfan5 <sfan5@live.de> | 2012-09-08 08:21:37 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2012-09-08 08:21:37 +0200 |
commit | ce9ce35a20c9280813161b6783aac39c15ed1f70 (patch) | |
tree | 82c6d3ae28663561542713488187f6ae01c83b77 | |
parent | a25a2a1fb0c198ca427a4da6ba53fd51b344ee54 (diff) |
Fix //replace air <something>
-rw-r--r-- | functions.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions.lua b/functions.lua index b2f6443..53e5e20 100644 --- a/functions.lua +++ b/functions.lua @@ -47,7 +47,7 @@ worldedit.replace = function(pos1, pos2, searchnode, replacenode) local pos1, pos2 = worldedit.sort_pos(pos1, pos2)
local env = minetest.env
- if searchnode:find(":") == nil then
+ if minetest.registered_nodes[searchnode] == nil then
searchnode = "default:" .. searchnode
end
|