mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-12-01 01:32:59 +00:00
Fix grass block crash in v6
This commit is contained in:
parent
1b7c41fc81
commit
435ae85d68
1 changed files with 5 additions and 2 deletions
|
@ -646,8 +646,11 @@ function mcl_core.get_grass_block_type(pos)
|
||||||
if biome_data then
|
if biome_data then
|
||||||
local biome = biome_data.biome
|
local biome = biome_data.biome
|
||||||
local biome_name = minetest.get_biome_name(biome)
|
local biome_name = minetest.get_biome_name(biome)
|
||||||
local biome_type = minetest.registered_biomes[biome_name]._mcl_biome_type
|
local reg_biome = minetest.registered_biomes[biome_name]
|
||||||
dry = biome_type == "hot"
|
if reg_biome then
|
||||||
|
biome_type = reg_biome._mcl_biome_type
|
||||||
|
dry = biome_type == "hot"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if dry then
|
if dry then
|
||||||
return {name="mcl_core:dirt_with_dry_grass"}
|
return {name="mcl_core:dirt_with_dry_grass"}
|
||||||
|
|
Loading…
Reference in a new issue