maze3d: reduce logging

This commit is contained in:
Starbeamrainbowlabs 2020-05-10 23:50:45 +01:00
parent df629157b2
commit 238ef7c810
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -27,7 +27,7 @@ local function generate_maze3d(seed, width, height, depth, path_length, path_wid
if not path_width then path_width = 1 end
if not path_depth then path_depth = 1 end
print("Generating maze "..width.."x"..height.."x"..depth.." | path: length "..path_length.." width "..path_width.." depth "..path_depth)
-- print("Generating maze "..width.."x"..height.."x"..depth.." | path: length "..path_length.." width "..path_width.." depth "..path_depth)
math.randomseed(seed) -- seed the random number generator with the system clock
local world = {}
@ -199,7 +199,7 @@ function worldeditadditions.maze3d(pos1, pos2, target_node, seed, path_length, p
-- minetest.log("action", "pos2: " .. worldeditadditions.vector.tostring(pos2))
minetest.log("action", "Generating "..extent.x.."x"..extent.z.."x"..extent.z.." 3d maze from pos1 " .. worldeditadditions.vector.tostring(pos1).." to pos2 "..worldeditadditions.vector.tostring(pos2))
-- minetest.log("action", "Generating "..extent.x.."x"..extent.z.."x"..extent.z.." 3d maze from pos1 " .. worldeditadditions.vector.tostring(pos1).." to pos2 "..worldeditadditions.vector.tostring(pos2))
local maze = generate_maze3d(seed, extent.z, extent.y, extent.x, path_length, path_width, path_depth) -- x & z need to be the opposite way around to how we index it
-- printspace3d(maze, extent.z, extent.y, extent.x)