Sound improvements

This commit is contained in:
Till Affeldt
2020-04-18 17:24:59 +02:00
parent a6cfca7745
commit 0c5c9f0d15
4 changed files with 77 additions and 38 deletions

View File

@ -2,10 +2,18 @@ climate_api.register_influence("heat", function(pos)
return climate_api.environment.get_heat(pos)
end)
climate_api.register_influence("base_heat", function(pos)
return minetest.get_heat(pos)
end)
climate_api.register_influence("humidity", function(pos)
return climate_api.environment.get_humidity(pos)
end)
climate_api.register_influence("base_humidity", function(pos)
return minetest.get_humidity(pos)
end)
climate_api.register_influence("biome", function(pos)
local data = minetest.get_biome_data(pos)
local biome = minetest.get_biome_name(data.biome)