Merge pull request #28 from kbinani/fix-feature-biome

Fix biome checks for Jungle_Pyramid, Shipwreck, and Outpost
This commit is contained in:
Cubitect 2020-05-04 22:05:18 +02:00 committed by GitHub
commit 9d94271c48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1401,14 +1401,17 @@ 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 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:
fprintf(stderr, "Structure type is not valid for the scattered feature biome check.\n");
exit(1);