mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2025-01-20 19:41:31 +01:00
Fix //replace <something> air
This commit is contained in:
parent
ce9ce35a20
commit
a429e104a2
@ -50,6 +50,9 @@ worldedit.replace = function(pos1, pos2, searchnode, replacenode)
|
||||
if minetest.registered_nodes[searchnode] == nil then
|
||||
searchnode = "default:" .. searchnode
|
||||
end
|
||||
if minetest.registered_nodes[replacenode] == nil then
|
||||
replacenode = "default:" .. replacenode
|
||||
end
|
||||
|
||||
local pos = {x=pos1.x, y=0, z=0}
|
||||
local node = {name=replacenode}
|
||||
|
Loading…
Reference in New Issue
Block a user