diff options
author | Uberi <azhang9@gmail.com> | 2014-07-14 00:11:33 -0400 |
---|---|---|
committer | Uberi <azhang9@gmail.com> | 2014-07-14 00:11:33 -0400 |
commit | d8aa7e72a73d925fdf946ac8bb0a9f385406747b (patch) | |
tree | 48474b58fa36c3cb9f15771b72161a0f863302c0 /worldedit/manipulations.lua | |
parent | 58d7a7134e3884999b135e2dafdf0171abf54f5a (diff) |
Oops, fix //set.
Diffstat (limited to 'worldedit/manipulations.lua')
-rw-r--r-- | worldedit/manipulations.lua | 4 |
1 files 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
|