Shorten code slightly

This commit is contained in:
FossFanatic 2023-02-13 15:46:08 +00:00
parent e17fab385b
commit abdd5e11c0

View file

@ -806,8 +806,6 @@ function mcl_core.get_grass_palette_index(pos)
local reg_biome = mcl_util.get_registered_biome_from_pos(pos) local reg_biome = mcl_util.get_registered_biome_from_pos(pos)
if reg_biome and reg_biome._mcl_grass_palette_index then if reg_biome and reg_biome._mcl_grass_palette_index then
return reg_biome._mcl_grass_palette_index return reg_biome._mcl_grass_palette_index
else
return index
end end
end end
@ -820,8 +818,6 @@ function mcl_core.get_foliage_palette_index(pos)
local reg_biome = mcl_util.get_registered_biome_from_pos(pos) local reg_biome = mcl_util.get_registered_biome_from_pos(pos)
if reg_biome and reg_biome._mcl_foliage_palette_index then if reg_biome and reg_biome._mcl_foliage_palette_index then
return reg_biome._mcl_foliage_palette_index return reg_biome._mcl_foliage_palette_index
else
return index
end end
end end