Skip to content

Commit d8aa7e7

Browse files
committedJul 14, 2014
Oops, fix //set.
1 parent 58d7a71 commit d8aa7e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎worldedit/manipulations.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ worldedit.set = function(pos1, pos2, nodenames)
4848
for i,v in ipairs(nodenames) do
4949
node_ids[i] = minetest.get_content_id(nodenames[i])
5050
end
51-
if #node_ids then --only one type of node
52-
local id = node_ids
51+
if #node_ids == 1 then --only one type of node
52+
local id = node_ids[1]
5353
for i in area:iterp(pos1, pos2) do nodes[i] = id end --fill area with node
5454
else --several types of nodes specified
5555
local id_count, rand = #node_ids, math.random

0 commit comments

Comments
 (0)
Please sign in to comment.