This commit is contained in:
HybridDog 2015-07-25 17:32:00 +02:00
parent 3c239fdd23
commit 42accd9276
2 changed files with 7 additions and 11 deletions

View File

@ -328,8 +328,8 @@ end
function riesenpilz.red45(pos, nodes, area, h1, h2) function riesenpilz.red45(pos, nodes, area, h1, h2)
local walkspace = h1 or math.random(2,MAX_SIZE) local walkspace = h1 or math.random(2,MAX_SIZE)
local toph = h2 or 1+math.random(MAX_SIZE) local toph = h2 or math.random(MAX_SIZE)
local h = walkspace+toph+3 local h = walkspace+toph+4
-- stem -- stem
for i in area:iterp(pos, {x=pos.x, y=pos.y+h, z=pos.z}) do for i in area:iterp(pos, {x=pos.x, y=pos.y+h, z=pos.z}) do
@ -393,8 +393,8 @@ local function riesenpilz_red45(pos)
local t1 = os.clock() local t1 = os.clock()
local h1 = math.random(2,MAX_SIZE) local h1 = math.random(2,MAX_SIZE)
local h2 = 1+math.random(MAX_SIZE) local h2 = math.random(MAX_SIZE)
local h = h1+h2+4 local h = h1+h2+5
local manip = minetest.get_voxel_manip() local manip = minetest.get_voxel_manip()
local area = r_area(manip, 3, h, pos) local area = r_area(manip, 3, h, pos)

View File

@ -1,3 +1,5 @@
local minetest = minetest --Should make things a bit faster.
local c local c
local function define_contents() local function define_contents()
c = { c = {
@ -104,8 +106,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
end end
local x0,z0,x1,z1 = minp.x,minp.z,maxp.x,maxp.z -- Assume X and Z lengths are equal local x0,z0,x1,z1 = minp.x,minp.z,maxp.x,maxp.z -- Assume X and Z lengths are equal
local env = minetest.env --Should make things a bit faster. local perlin1 = minetest.get_perlin(51,3, 0.5, perlin_scale) --Get map specific perlin
local perlin1 = env:get_perlin(51,3, 0.5, perlin_scale) --Get map specific perlin
if not riesenpilz.always_generate then if not riesenpilz.always_generate then
local biome_allowed local biome_allowed
@ -154,11 +155,6 @@ minetest.register_on_generated(function(minp, maxp, seed)
end end
end end
end end
--[[remove usual stuff
local trees = env:find_nodes_in_area(minp, maxp, USUAL_STUFF)
for i,v in pairs(trees) do
env:remove_node(v)
end]]
for j=0,divs do for j=0,divs do
for i=0,divs do for i=0,divs do