fix returning black color in biomes without a color override

This commit is contained in:
Julian Krings
2024-07-21 15:50:45 +02:00
parent 88ea43fbbe
commit 4c68d99c6f
7 changed files with 37 additions and 0 deletions
@@ -147,6 +147,7 @@ public class OraxenDataProvider extends ExternalDataProvider {
if (type != null) {
var biomeColor = INMS.get().getBiomeColor(block.getLocation(), type);
if (biomeColor == null) return;
var potionColor = Color.fromARGB(biomeColor.getAlpha(), biomeColor.getRed(), biomeColor.getGreen(), biomeColor.getBlue());
if (itemStack.getItemMeta() instanceof PotionMeta meta) {
meta.setColor(potionColor);