mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 12:01:06 +01:00
Make set palette safer
This commit is contained in:
parent
b77260253a
commit
ad25b0bc4b
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ local function set_palette(minp,maxp,data2,area,biomemap,nodes)
|
|||
local bn = minetest.get_biome_name(biomemap[b_pos])
|
||||
if bn then
|
||||
local biome = minetest.registered_biomes[bn]
|
||||
if biome and biome._mcl_biome_type then
|
||||
if biome and biome._mcl_biome_type and biome._mcl_grass_palette_index then
|
||||
data2[p_pos] = biome._mcl_grass_palette_index
|
||||
lvm_used = true
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue