Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
public class FoundryBasinCategory extends CreateRecipeCategory<FoundryBasinRecipe> {

private final boolean needsHeating;
protected boolean customHeatSource;

public FoundryBasinCategory(Info<FoundryBasinRecipe> info, boolean needsHeating) {
super(info);
Expand Down Expand Up @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading