mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 17:43:53 +01:00
maze3d: reduce logging
This commit is contained in:
parent
df629157b2
commit
238ef7c810
@ -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_width then path_width = 1 end
|
||||||
if not path_depth then path_depth = 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
|
math.randomseed(seed) -- seed the random number generator with the system clock
|
||||||
|
|
||||||
local world = {}
|
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", "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
|
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)
|
-- printspace3d(maze, extent.z, extent.y, extent.x)
|
||||||
|
Loading…
Reference in New Issue
Block a user