diff --git a/src/main/java/fr/lucreeper74/createmetallurgy/compat/jei/category/AlloyingCategory.java b/src/main/java/fr/lucreeper74/createmetallurgy/compat/jei/category/AlloyingCategory.java index 3fcf6c6e..b6a4170f 100644 --- a/src/main/java/fr/lucreeper74/createmetallurgy/compat/jei/category/AlloyingCategory.java +++ b/src/main/java/fr/lucreeper74/createmetallurgy/compat/jei/category/AlloyingCategory.java @@ -20,7 +20,7 @@ public void draw(FoundryBasinRecipe recipe, IRecipeSlotsView iRecipeSlotsView, G super.draw(recipe, iRecipeSlotsView, graphics, mouseX, mouseY); HeatCondition requiredHeat = recipe.getRequiredHeat(); - if (requiredHeat != HeatCondition.NONE) + if (requiredHeat != HeatCondition.NONE && !customHeatSource) heater.withHeat(requiredHeat.visualizeAsBlazeBurner()) .draw(graphics, getBackground().getWidth() / 2 + 3, 55); mixer.draw(graphics, getBackground().getWidth() / 2 + 3, 34); diff --git a/src/main/java/fr/lucreeper74/createmetallurgy/compat/jei/category/FoundryBasinCategory.java b/src/main/java/fr/lucreeper74/createmetallurgy/compat/jei/category/FoundryBasinCategory.java index b77dad36..3ecde063 100644 --- a/src/main/java/fr/lucreeper74/createmetallurgy/compat/jei/category/FoundryBasinCategory.java +++ b/src/main/java/fr/lucreeper74/createmetallurgy/compat/jei/category/FoundryBasinCategory.java @@ -32,6 +32,7 @@ public class FoundryBasinCategory extends CreateRecipeCategory { private final boolean needsHeating; + protected boolean customHeatSource; public FoundryBasinCategory(Info info, boolean needsHeating) { super(info); @@ -122,9 +123,9 @@ public void draw(FoundryBasinRecipe recipe, IRecipeSlotsView recipeSlotsView, Gu AllGuiTextures shadow = noHeat ? AllGuiTextures.JEI_SHADOW : AllGuiTextures.JEI_LIGHT; shadow.render(graphics, 81, 58 + (noHeat ? 10 : 30)); + customHeatSource = false; if (HEATJS_LOADED) { - // TODO: need to prevent blaze burner from drawing if this is active to avoid overlapping - CategoryHelper.drawCustomHeatSource(graphics, recipeSlotsView, recipe, + customHeatSource = CategoryHelper.drawCustomHeatSource(graphics, recipeSlotsView, recipe, background.getWidth() / 2 + 3, 55, background.getWidth(), background.getHeight(), mouseX, mouseY); } diff --git a/src/main/java/fr/lucreeper74/createmetallurgy/compat/jei/category/MeltingCategory.java b/src/main/java/fr/lucreeper74/createmetallurgy/compat/jei/category/MeltingCategory.java index 536a3d2b..c9830688 100644 --- a/src/main/java/fr/lucreeper74/createmetallurgy/compat/jei/category/MeltingCategory.java +++ b/src/main/java/fr/lucreeper74/createmetallurgy/compat/jei/category/MeltingCategory.java @@ -26,7 +26,7 @@ public void draw(FoundryBasinRecipe recipe, IRecipeSlotsView iRecipeSlotsView, G drawProcessTime(recipe, graphics, 55); HeatCondition requiredHeat = recipe.getRequiredHeat(); - if (requiredHeat != HeatCondition.NONE) + if (requiredHeat != HeatCondition.NONE && !customHeatSource) heater.withHeat(requiredHeat.visualizeAsBlazeBurner()) .draw(graphics, getBackground().getWidth() / 2 + 3, 55); castingtop.draw(graphics, getBackground().getWidth() / 2 + 3, 34);