mirror of
https://github.com/mt-mods/biome_lib.git
synced 2024-11-16 07:30:20 +01:00
fix deprecated function call
This commit is contained in:
parent
a96f015ce9
commit
5a910875af
2
init.lua
2
init.lua
|
@ -85,7 +85,7 @@ biome_lib.perlin_humidity = PerlinNoise(humidity_seeddiff, humidity_octaves, hum
|
||||||
-- Local functions
|
-- Local functions
|
||||||
|
|
||||||
local function get_biome_data(pos, perlin_fertile)
|
local function get_biome_data(pos, perlin_fertile)
|
||||||
local fertility = perlin_fertile:get2d({x=pos.x, y=pos.z})
|
local fertility = perlin_fertile:get_2d({x=pos.x, y=pos.z})
|
||||||
|
|
||||||
if type(minetest.get_biome_data) == "function" then
|
if type(minetest.get_biome_data) == "function" then
|
||||||
local data = minetest.get_biome_data(pos)
|
local data = minetest.get_biome_data(pos)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user