mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-01-06 15:51:30 +00:00
fix getBiomeColor for 1.19.2
This commit is contained in:
@@ -535,6 +535,12 @@ public class NMSBinding implements INMSBinding {
|
|||||||
case FOLIAGE -> biome.getFoliageColor();
|
case FOLIAGE -> biome.getFoliageColor();
|
||||||
case GRASS -> biome.getGrassColor(location.getBlockX(), location.getBlockZ());
|
case GRASS -> biome.getGrassColor(location.getBlockX(), location.getBlockZ());
|
||||||
};
|
};
|
||||||
|
if (rgba == 0) {
|
||||||
|
if (BiomeColor.FOLIAGE == type && biome.getSpecialEffects().getFoliageColorOverride().isEmpty())
|
||||||
|
return null;
|
||||||
|
if (BiomeColor.GRASS == type && biome.getSpecialEffects().getGrassColorOverride().isEmpty())
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return new Color(rgba, true);
|
return new Color(rgba, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user