From a72a30d788f3c8693623e36c6af4a918d8acf3b0 Mon Sep 17 00:00:00 2001 From: arpruss Date: Tue, 20 Oct 2015 22:21:04 -0500 Subject: [PATCH] juice compat --- raspberryjammod/init.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/raspberryjammod/init.lua b/raspberryjammod/init.lua index 9eab82c..9c5fb7d 100644 --- a/raspberryjammod/init.lua +++ b/raspberryjammod/init.lua @@ -560,18 +560,18 @@ function handle_world(cmd, args) end end elseif cmd == "getNodes" then - for x = x1,x2,dx do - for y = y1,y2,dy do - for z = z1,z2,dz do + for y = y1,y2 do + for x = x1,x2 do + for z = z1,z2 do local node = minetest.get_node({x=x,y=y,z=z}) table.insert(data, sanitize_pipe(node.name) .. "," .. node.param2) end end end else - for x = x1,x2,dx do - for y = y1,y2,dy do - for z = z1,z2,dz do + for y = y1,y2 do + for x = x1,x2 do + for z = z1,z2 do local node = minetest.get_node({x=x,y=y,z=z}) local id, _ = block.node_to_id_meta(node) table.insert(data, tostring(id))