Remove useless function

This commit removes an useless function which wasn't really needed.
This commit is contained in:
FossFanatic 2023-02-10 15:12:37 +00:00
parent 953044cc4b
commit 7fbc84971e
1 changed files with 1 additions and 6 deletions

View File

@ -820,11 +820,6 @@ function mcl_core.get_grass_block_type(pos)
return {name = "mcl_core:dirt_with_grass", param2 = mcl_core.get_grass_palette_index(pos)}
end
function mcl_core.get_foliage_name(pos)
local nodename = minetest.get_node(pos).name
return nodename
end
function mcl_core.get_foliage_palette_index(pos)
local biome_data = minetest.get_biome_data(pos)
local index = 0
@ -841,7 +836,7 @@ end
-- Return appropriate foliage block node for pos
function mcl_core.get_foliage_block_type(pos)
return {name = mcl_core.get_foliage_name(pos), param2 = mcl_core.get_foliage_palette_index(pos)}
return {name = minetest.get_node(pos).name, param2 = mcl_core.get_foliage_palette_index(pos)}
end
------------------------------