forked from mtcontrib/Minetest-WorldEdit
Do not allow //mix with no nodes
This commit is contained in:
@ -574,6 +574,9 @@ worldedit.register_command("mix", {
|
|||||||
nodes[#nodes + 1] = node
|
nodes[#nodes + 1] = node
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if #nodes == 0 then
|
||||||
|
return false
|
||||||
|
end
|
||||||
return true, nodes
|
return true, nodes
|
||||||
end,
|
end,
|
||||||
nodes_needed = check_region,
|
nodes_needed = check_region,
|
||||||
|
Reference in New Issue
Block a user