fix getBiomeColor for 1.19.2

This commit is contained in:
Julian Krings 2024-07-27 15:43:09 +02:00
parent fc890a5ba1
commit cd55a7fed4

View File

@ -535,6 +535,12 @@ public class NMSBinding implements INMSBinding {
case FOLIAGE -> biome.getFoliageColor();
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);
}