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

View file

@ -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