mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 00:07:45 +00:00
Fix biome dictionary's biome type detection (#4878)
This commit is contained in:
1 parent
97a2143fc2
commit
fab45a32a8
1 file changed
+4
-4
@@ -347,20 +347,20 @@ public class BiomeDictionary
|
||||
BiomeDictionary.addTypes(biome, SNOWY);
|
||||
}
|
||||
|
||||
if (biome.topBlock != Blocks.SAND && biome.getDefaultTemperature() >= 1.0f && biome.getRainfall() < 0.2f)
|
||||
if (biome.topBlock.getBlock() != Blocks.SAND && biome.getDefaultTemperature() >= 1.0f && biome.getRainfall() < 0.2f)
|
||||
{
|
||||
BiomeDictionary.addTypes(biome, SAVANNA);
|
||||
}
|
||||
|
||||
if (biome.topBlock == Blocks.SAND)
|
||||
if (biome.topBlock.getBlock() == Blocks.SAND)
|
||||
{
|
||||
BiomeDictionary.addTypes(biome, SANDY);
|
||||
}
|
||||
else if (biome.topBlock == Blocks.MYCELIUM)
|
||||
else if (biome.topBlock.getBlock() == Blocks.MYCELIUM)
|
||||
{
|
||||
BiomeDictionary.addTypes(biome, MUSHROOM);
|
||||
}
|
||||
if (biome.fillerBlock == Blocks.HARDENED_CLAY)
|
||||
if (biome.fillerBlock.getBlock() == Blocks.HARDENED_CLAY)
|
||||
{
|
||||
BiomeDictionary.addTypes(biome, MESA);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user