mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-11-10 12:30:29 +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 pos1, pos2 = worldedit.sort_pos(pos1, pos2)
|
||||||
local env = minetest.env
|
local env = minetest.env
|
||||||
|
|
||||||
if searchnode:find(":") == nil then
|
if minetest.registered_nodes[searchnode] == nil then
|
||||||
searchnode = "default:" .. searchnode
|
searchnode = "default:" .. searchnode
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user