Skip to content
Permalink
Browse files

Oops, fix //set.

  • Loading branch information...
Uberi committed Jul 14, 2014
1 parent 58d7a71 commit d8aa7e72a73d925fdf946ac8bb0a9f385406747b
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit d8aa7e7

Please sign in to comment.
You can’t perform that action at this time.