Check for biome string in decorations.

master
Duane Robertson 2017-09-12 03:29:07 -05:00
parent 925a9ece29
commit 51c624f507
1 changed files with 6 additions and 2 deletions

View File

@ -16,8 +16,12 @@ do
local deco = {}
if odeco.biomes then
deco.biomes = {}
for _, b in pairs(odeco.biomes) do
deco.biomes[b] = true
if type(odeco.biomes) == 'table' then
for _, b in pairs(odeco.biomes) do
deco.biomes[b] = true
end
elseif type(odeco.biomes) == 'string' then
deco.biomes[odeco.biomes] = true
end
end