mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix Biome generation error.
This commit is contained in:
1 parent
daa817bbdf
commit
7717795f42
2 files changed
+16
-14
No files matched your search
@@ -155,16 +155,6 @@ public class BiomeManager
|
||||
}
|
||||
}
|
||||
|
||||
public static BiomeEntry getWeightedBiomeEntry(BiomeType type, INoiseRandom context)
|
||||
{
|
||||
List<BiomeEntry> biomeList = biomes[type.ordinal()];
|
||||
|
||||
int totalWeight = WeightedRandom.getTotalWeight(biomeList);
|
||||
int weight = isTypeListModded(type) ? context.random(totalWeight) : context.random(totalWeight / 10) * 10;
|
||||
|
||||
return WeightedRandom.getRandomItem(biomeList, weight);
|
||||
}
|
||||
|
||||
private static class TrackedList<E> extends ArrayList<E>
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
Reference in new issue
Block a user