mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-01 23:47:21 +00:00
fix getBiomeColor for 1.19.2
This commit is contained in:
parent
fc890a5ba1
commit
cd55a7fed4
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user