From d8aa7e72a73d925fdf946ac8bb0a9f385406747b Mon Sep 17 00:00:00 2001 From: Uberi Date: Mon, 14 Jul 2014 00:11:33 -0400 Subject: [PATCH] Oops, fix //set. --- worldedit/manipulations.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit/manipulations.lua b/worldedit/manipulations.lua index 86ae565..2e3e369 100644 --- a/worldedit/manipulations.lua +++ b/worldedit/manipulations.lua @@ -48,8 +48,8 @@ worldedit.set = function(pos1, pos2, nodenames) for i,v in ipairs(nodenames) do node_ids[i] = minetest.get_content_id(nodenames[i]) end - if #node_ids then --only one type of node - local id = node_ids + if #node_ids == 1 then --only one type of node + local id = node_ids[1] for i in area:iterp(pos1, pos2) do nodes[i] = id end --fill area with node else --several types of nodes specified local id_count, rand = #node_ids, math.random