From 1f4a115063914ed32a0c75cb55d2f35227a0c7a0 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 30 Jul 2021 19:46:33 +0100 Subject: [PATCH] //maze3d: Fix accidental global variable definition --- worldeditadditions/lib/maze3d.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/worldeditadditions/lib/maze3d.lua b/worldeditadditions/lib/maze3d.lua index fe84aa4..42318e2 100644 --- a/worldeditadditions/lib/maze3d.lua +++ b/worldeditadditions/lib/maze3d.lua @@ -5,7 +5,7 @@ ---------------------------------- -- function to print out the world ---------------------------------- -function printspace3d(space, w, h, d) +local function printspace3d(space, w, h, d) for z = 0, d - 1, 1 do for y = 0, h - 1, 1 do local line = "" @@ -18,9 +18,6 @@ function printspace3d(space, w, h, d) end end --- Initialise the world -start_time = worldeditadditions.get_ms_time() - local function generate_maze3d(seed, width, height, depth, path_length, path_width, path_depth) if not path_length then path_length = 2 end