From 45c4c295e5a24058f8d785d8d234833d097eed57 Mon Sep 17 00:00:00 2001 From: boberchik342 Date: Mon, 25 May 2026 09:37:05 -0400 Subject: [PATCH] fixed division by 0 error --- .../content/blocks/industrial_crucible/foundry/FoundryData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/lucreeper74/createmetallurgy/content/blocks/industrial_crucible/foundry/FoundryData.java b/src/main/java/fr/lucreeper74/createmetallurgy/content/blocks/industrial_crucible/foundry/FoundryData.java index 218c88f2..c3cc4cd3 100644 --- a/src/main/java/fr/lucreeper74/createmetallurgy/content/blocks/industrial_crucible/foundry/FoundryData.java +++ b/src/main/java/fr/lucreeper74/createmetallurgy/content/blocks/industrial_crucible/foundry/FoundryData.java @@ -130,7 +130,7 @@ public void addToGoggleTooltip(List tooltip, boolean gaugeActive, int CMLang.text("") .add(CreateLang.itemName(stackInSlot).style(ChatFormatting.GRAY)) .space() - .add(slot.processDuration >= 0 ? + .add(slot.processDuration > 0 ? progressBarComponent(duration, slot.processingTime, 9) : CMLang.text("X").style(ChatFormatting.RED).style(ChatFormatting.BOLD).component()) .forGoggles(tooltip, 1);