1
0
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:
sfan5 2012-09-08 08:21:37 +02:00
parent a25a2a1fb0
commit ce9ce35a20

View File

@ -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