Prevent crash in mapgens with no biomemap.

This commit is contained in:
Duane Robertson 2016-05-29 19:29:48 -05:00
parent 4a5950721e
commit 85353e0ce6

View file

@ -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.