Replace minetest.env with minetest

This commit is contained in:
Wuzzy
2018-05-24 23:06:17 +02:00
parent 05bef9bf6e
commit eb3590ce68
3 changed files with 12 additions and 12 deletions

View File

@ -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