Skip to content

Commit

Permalink
Oops, fix //set.
Browse files Browse the repository at this point in the history
  • Loading branch information
Uberi committed Jul 14, 2014
1 parent 58d7a71 commit d8aa7e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worldedit/manipulations.lua
Expand Up @@ -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
Expand Down

0 comments on commit d8aa7e7

Please sign in to comment.