summaryrefslogtreecommitdiff
path: root/worldedit/manipulations.lua
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2015-05-04 18:48:09 +0200
committersfan5 <sfan5@live.de>2015-05-04 18:48:27 +0200
commitab47385f7b00912e56b8604c89e332504a390740 (patch)
tree196bdfbb2f46ab7bb0755097fbebc6327e4614be /worldedit/manipulations.lua
parent78915d4a545fbc191048ed107eb1886dc56a2fd4 (diff)
Fix crash (worldedit/manipulations.lua:526: attempt to call global 'set_node' (a nil value))
Diffstat (limited to 'worldedit/manipulations.lua')
-rw-r--r--worldedit/manipulations.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/worldedit/manipulations.lua b/worldedit/manipulations.lua
index e76cf70..365d7b3 100644
--- a/worldedit/manipulations.lua
+++ b/worldedit/manipulations.lua
@@ -503,8 +503,8 @@ function worldedit.orient(pos1, pos2, angle)
worldedit.keep_loaded(pos1, pos2)
local count = 0
- local get_node, get_meta, swap_node = minetest.get_node,
- minetest.get_meta, minetest.swap_node
+ local set_node, get_node, get_meta, swap_node = minetest.set_node,
+ minetest.get_node, minetest.get_meta, minetest.swap_node
local pos = {x=pos1.x, y=0, z=0}
while pos.x <= pos2.x do
pos.y = pos1.y