From f45ffc09bf77282c69869f69ae98e7216e854b7a Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Wed, 22 May 2019 20:03:00 -0400 Subject: [PATCH] Use a "set" for surface list rather than a plain table (requires biome_lib from commit a96f015c or later) --- saplings.lua | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/saplings.lua b/saplings.lua index 68e5de8..a004923 100644 --- a/saplings.lua +++ b/saplings.lua @@ -4,26 +4,25 @@ -- limited, in the interest of speed. local dirt_surfaces = { - "default:dirt", - "default:dirt_with_grass", - "default:dirt_with_dry_grass", - "default:dirt_with_coniferous_litter", - "default:dirt_with_rainforest_litter", - "default:dirt_with_snow", - "woodsoils:dirt_with_leaves_1", - "woodsoils:dirt_with_leaves_2", - "woodsoils:grass_with_leaves_1", - "woodsoils:grass_with_leaves_2" + set = true, + ["default:dirt"] = true, + ["default:dirt_with_grass"] = true, + ["default:dirt_with_dry_grass"] = true, + ["default:dirt_with_coniferous_litter"] = true, + ["default:dirt_with_rainforest_litter"] = true, + ["default:dirt_with_snow"] = true, + ["woodsoils:dirt_with_leaves_1"] = true, + ["woodsoils:dirt_with_leaves_2"] = true, + ["woodsoils:grass_with_leaves_1"] = true, + ["woodsoils:grass_with_leaves_2"] = true } -local cold_surfaces = { - "default:dirt_with_snow" -} +local cold_surfaces = "default:dirt_with_snow" local sand_surfaces = { - "default:sand", - "default:desert_sand", - "cottages:loam", + ["default:sand"] = true, + ["default:desert_sand"] = true, + ["cottages:loam"] = true, -- note, no silver sand here. -- too cold for a palm, too... well... sandy for anything else. }