From 51c624f507cc2a2e741f1b69d084f3ec75028b1e Mon Sep 17 00:00:00 2001 From: Duane Robertson Date: Tue, 12 Sep 2017 03:29:07 -0500 Subject: [PATCH] Check for biome string in decorations. --- deco.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deco.lua b/deco.lua index 0a10dcd..7ff7658 100644 --- a/deco.lua +++ b/deco.lua @@ -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