Prevent crash in mapgens with no biomemap.
This commit is contained in:
parent
4a5950721e
commit
85353e0ce6
1 changed files with 4 additions and 1 deletions
|
@ -584,7 +584,10 @@ local function generate(p_minp, p_maxp, seed)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
local pn = plant_n[index]
|
local pn = plant_n[index]
|
||||||
local biome = biome_ids[biomemap[index]]
|
local biome
|
||||||
|
if biomemap then
|
||||||
|
biome = biome_ids[biomemap[index]]
|
||||||
|
end
|
||||||
-----------------------------------------------------------
|
-----------------------------------------------------------
|
||||||
-- water decoration non-loop -- only there to enable breaks
|
-- water decoration non-loop -- only there to enable breaks
|
||||||
-- Remove this loop to eliminate water decorations.
|
-- Remove this loop to eliminate water decorations.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue