Skip to content

Commit

Permalink
Merge branch '1.19' into 1.19_itemless
Browse files Browse the repository at this point in the history
  • Loading branch information
sisby-folk committed Jul 7, 2023
2 parents 95f79c7 + d8b8ffc commit 43e9e44
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public static boolean biomeIsSavanna(RegistryEntry<Biome> biomeTag) {
}

@ExpectPlatform
private static boolean biomeIsPlateau(RegistryEntry<Biome> biomeTag) {
public static boolean biomeIsPlateau(RegistryEntry<Biome> biomeTag) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ static private boolean hasSwampWater(RegistryEntry<Biome> biomeTag) {
throw new AssertionError("Not implemented");
}

static int priorityForBiome(World world, Biome biome) {
Registry<Biome> biomeRegistry = world.getRegistryManager().get(Registry.BIOME_KEY);
RegistryEntry<Biome> biomeTag = biomeRegistry.entryOf(biomeRegistry.getKey(biome).orElse(null));
static int priorityForBiome(RegistryEntry<Biome> biomeTag) {
if (biomeTag.isIn(BiomeTags.IS_OCEAN) || biomeTag.isIn(BiomeTags.IS_RIVER) || biomeTag.isIn(BiomeTags.IS_DEEP_OCEAN)) {
return 4;
} else if (biomeTag.isIn(BiomeTags.IS_BEACH)) {
Expand Down Expand Up @@ -175,7 +173,7 @@ public Identifier getBiomeID(World world, Chunk chunk) {
}

// updateOccurrencesMap(biomeOccurrences, world, biome, getHeightType(weirdness), priorityForBiome(getBiomeIdentifier(world, biome)));
updateOccurrencesMap(biomeOccurrences, world, biome, getHeightTypeFromY(y, world.getSeaLevel()), priorityForBiome(world, biome));
updateOccurrencesMap(biomeOccurrences, world, biome, getHeightTypeFromY(y, world.getSeaLevel()), priorityForBiome(biomeTag));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public Identifier getBiomeID(World world, Chunk chunk) {
}
} else {
// In case there are custom biomes "modded in":
updateOccurrencesMap(biomeOccurrences, getBiomeIdentifier(world,biome), priorityForBiome(world,biome));
updateOccurrencesMap(biomeOccurrences, getBiomeIdentifier(world,biome), priorityForBiome(biomeTag));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static boolean biomeIsBadlands(RegistryEntry<Biome> biomeTag) {
return biomeTag.isIn((ConventionalBiomeTags.BADLANDS)) || biomeTag.isIn((ConventionalBiomeTags.MESA));
}

private static boolean biomeIsPlateau(RegistryEntry<Biome> biomeTag) {
public static boolean biomeIsPlateau(RegistryEntry<Biome> biomeTag) {
return false; // None
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static boolean biomeIsBadlands(RegistryEntry<Biome> biomeTag) {
return false; // None
}

private static boolean biomeIsPlateau(RegistryEntry<Biome> biomeTag) {
public static boolean biomeIsPlateau(RegistryEntry<Biome> biomeTag) {
return biomeTag.isIn((Tags.Biomes.IS_PLATEAU));
}

Expand Down

0 comments on commit 43e9e44

Please sign in to comment.