forked from mtcontrib/tsm_pyramids
Replace minetest.env with minetest
This commit is contained in:
2
init.lua
2
init.lua
@ -138,7 +138,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||
math.randomseed(seed)
|
||||
local cnt = 0
|
||||
|
||||
local perlin1 = minetest.env:get_perlin(perl1.SEED1, perl1.OCTA1, perl1.PERS1, perl1.SCAL1)
|
||||
local perlin1 = minetest.get_perlin(perl1.SEED1, perl1.OCTA1, perl1.PERS1, perl1.SCAL1)
|
||||
local noise1 = perlin1:get2d({x=minp.x,y=minp.y})--,z=minp.z})
|
||||
|
||||
if noise1 > 0.25 or noise1 < -0.26 then
|
||||
|
Reference in New Issue
Block a user