diff options
Diffstat (limited to 'functions.lua')
-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
|