Append stuff to the new function
parent
686bb38546
commit
9bb3d8311b
|
@ -1017,7 +1017,7 @@ function mcl_util.check_position_protection(position, player)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
local palette_indexes = {grass_palette_index = 0, foliage_palette_index = 0}
|
local palette_indexes = {grass_palette_index = 0, foliage_palette_index = 0, water_palette_index = 0}
|
||||||
function mcl_util.get_palette_indexes_from_pos(pos)
|
function mcl_util.get_palette_indexes_from_pos(pos)
|
||||||
local biome_data = minetest.get_biome_data(pos)
|
local biome_data = minetest.get_biome_data(pos)
|
||||||
local biome = biome_data.biome
|
local biome = biome_data.biome
|
||||||
|
@ -1026,7 +1026,8 @@ function mcl_util.get_palette_indexes_from_pos(pos)
|
||||||
if reg_biome and reg_biome._mcl_grass_palette_index and reg_biome._mcl_foliage_palette_index then
|
if reg_biome and reg_biome._mcl_grass_palette_index and reg_biome._mcl_foliage_palette_index then
|
||||||
local gpi = reg_biome._mcl_grass_palette_index
|
local gpi = reg_biome._mcl_grass_palette_index
|
||||||
local fpi = reg_biome._mcl_foliage_palette_index
|
local fpi = reg_biome._mcl_foliage_palette_index
|
||||||
local palette_indexes = {grass_palette_index = gpi, foliage_palette_index = fpi}
|
local wpi = reg_biome._mcl_water_palette_index
|
||||||
|
local palette_indexes = {grass_palette_index = gpi, foliage_palette_index = fpi, water_palette_index = wpi}
|
||||||
return palette_indexes
|
return palette_indexes
|
||||||
else
|
else
|
||||||
return palette_indexes
|
return palette_indexes
|
||||||
|
|
Loading…
Reference in New Issue