From 189e53fd540a52124f63fa6f93f684b4690cb5e0 Mon Sep 17 00:00:00 2001 From: kbinani Date: Mon, 4 May 2020 17:36:00 +0900 Subject: [PATCH 1/2] Fix biome for Jungle_Pyramid, Shipwreck, and Outpost --- finders.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/finders.c b/finders.c index f531d9f..02b2327 100644 --- a/finders.c +++ b/finders.c @@ -1401,14 +1401,15 @@ int isViableFeaturePos(const int structureType, const LayerStack g, int *cache, case Igloo: return biomeID == snowy_tundra || biomeID == snowy_taiga; case Jungle_Pyramid: - return biomeID == jungle || biomeID == jungle_hills; + return biomeID == jungle || biomeID == jungle_hills || biomeID == bamboo_jungle || biomeID == bamboo_jungle_hills; case Swamp_Hut: return biomeID == swamp; case Ocean_Ruin: - case Shipwreck: return isOceanic(biomeID); - case Ruined_Portal: - return 1; + case Shipwreck: + return isOceanic(biomeID) || biomeID == beach || biomeID == snowy_beach; + case Outpost: + return biomeID == plains || biomeID == desert || biomeID == taiga || biomeID == snowy_tundra || biomeID == savanna; default: fprintf(stderr, "Structure type is not valid for the scattered feature biome check.\n"); exit(1); From 033148ff21131d9655f26e719e9d191a3614844e Mon Sep 17 00:00:00 2001 From: kbinani Date: Mon, 4 May 2020 17:49:54 +0900 Subject: [PATCH 2/2] Fix merge mistake --- finders.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/finders.c b/finders.c index 02b2327..237959a 100644 --- a/finders.c +++ b/finders.c @@ -1408,6 +1408,8 @@ int isViableFeaturePos(const int structureType, const LayerStack g, int *cache, return isOceanic(biomeID); case Shipwreck: return isOceanic(biomeID) || biomeID == beach || biomeID == snowy_beach; + case Ruined_Portal: + return 1; case Outpost: return biomeID == plains || biomeID == desert || biomeID == taiga || biomeID == snowy_tundra || biomeID == savanna; default: