Add per-biome grass coloring

This commit is contained in:
Wuzzy 2019-12-13 23:48:13 +01:00
parent d4344bbaf8
commit 3e3ed630e5
4 changed files with 166 additions and 80 deletions

View file

@ -1806,8 +1806,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
if bn then
local biome = minetest.registered_biomes[bn]
if biome then
if biome._mcl_biome_type == "hot" then
param2_data[p_pos] = 1
if biome._mcl_biome_type then
param2_data[p_pos] = biome._mcl_palette_index
lvm_used = true
end
end