mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2025-01-27 02:10:19 +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
|
if minetest.registered_nodes[searchnode] == nil then
|
||||||
searchnode = "default:" .. searchnode
|
searchnode = "default:" .. searchnode
|
||||||
end
|
end
|
||||||
|
if minetest.registered_nodes[replacenode] == nil then
|
||||||
|
replacenode = "default:" .. replacenode
|
||||||
|
end
|
||||||
|
|
||||||
local pos = {x=pos1.x, y=0, z=0}
|
local pos = {x=pos1.x, y=0, z=0}
|
||||||
local node = {name=replacenode}
|
local node = {name=replacenode}
|
||||||
|
Loading…
Reference in New Issue
Block a user