1
0
Fork 0

Rename _mcl_palette_index to _mcl_grass_palette_index

This commit is contained in:
FossFanatic 2022-12-28 19:31:11 +00:00
parent 1f601c68c5
commit 18e932997d
1 changed files with 2 additions and 2 deletions

View File

@ -809,7 +809,7 @@ function mcl_core.get_grass_palette_index(pos)
local biome_name = minetest.get_biome_name(biome)
local reg_biome = minetest.registered_biomes[biome_name]
if reg_biome then
index = reg_biome._mcl_palette_index
index = reg_biome._mcl_grass_palette_index
end
end
return index
@ -939,7 +939,7 @@ minetest.register_lbm({
else
node.name = "mcl_core:dirt_with_grass"
end
node.param2 = reg_biome._mcl_palette_index
node.param2 = reg_biome._mcl_grass_palette_index
-- Fall back to savanna palette index
if not node.param2 then
node.param2 = SAVANNA_INDEX