forked from VoxeLibre/VoxeLibre
Rename _mcl_palette_index to _mcl_grass_palette_index
This commit is contained in:
parent
1f601c68c5
commit
18e932997d
|
@ -809,7 +809,7 @@ function mcl_core.get_grass_palette_index(pos)
|
||||||
local biome_name = minetest.get_biome_name(biome)
|
local biome_name = minetest.get_biome_name(biome)
|
||||||
local reg_biome = minetest.registered_biomes[biome_name]
|
local reg_biome = minetest.registered_biomes[biome_name]
|
||||||
if reg_biome then
|
if reg_biome then
|
||||||
index = reg_biome._mcl_palette_index
|
index = reg_biome._mcl_grass_palette_index
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return index
|
return index
|
||||||
|
@ -939,7 +939,7 @@ minetest.register_lbm({
|
||||||
else
|
else
|
||||||
node.name = "mcl_core:dirt_with_grass"
|
node.name = "mcl_core:dirt_with_grass"
|
||||||
end
|
end
|
||||||
node.param2 = reg_biome._mcl_palette_index
|
node.param2 = reg_biome._mcl_grass_palette_index
|
||||||
-- Fall back to savanna palette index
|
-- Fall back to savanna palette index
|
||||||
if not node.param2 then
|
if not node.param2 then
|
||||||
node.param2 = SAVANNA_INDEX
|
node.param2 = SAVANNA_INDEX
|
||||||
|
|
Loading…
Reference in New Issue