Skip to content

Commit ab47385

Browse files
committedMay 4, 2015
Fix crash (worldedit/manipulations.lua:526: attempt to call global 'set_node' (a nil value))
1 parent 78915d4 commit ab47385

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
@@ -503,8 +503,8 @@ function worldedit.orient(pos1, pos2, angle)
503503
worldedit.keep_loaded(pos1, pos2)
504504

505505
local count = 0
506-
local get_node, get_meta, swap_node = minetest.get_node,
507-
minetest.get_meta, minetest.swap_node
506+
local set_node, get_node, get_meta, swap_node = minetest.set_node,
507+
minetest.get_node, minetest.get_meta, minetest.swap_node
508508
local pos = {x=pos1.x, y=0, z=0}
509509
while pos.x <= pos2.x do
510510
pos.y = pos1.y

0 commit comments

Comments
 (0)
Please sign in to comment.