mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-12-25 10:10:41 +01:00
Fix //replace air <something>
This commit is contained in:
parent
a25a2a1fb0
commit
ce9ce35a20
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user