fix returning black color in biomes without a color override

This commit is contained in:
Julian Krings committed 2024-07-21 15:50:45 +02:00
1 parent 88ea43fbbe
commit 4c68d99c6f
7 files changed
+37

No files matched your search

@@ -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);