diff --git a/src/main/java/dev/wolfieboy09/qstorage/block/disk_assembler/DiskAssemblerScreen.java b/src/main/java/dev/wolfieboy09/qstorage/block/disk_assembler/DiskAssemblerScreen.java index 3ad474c..24204dc 100644 --- a/src/main/java/dev/wolfieboy09/qstorage/block/disk_assembler/DiskAssemblerScreen.java +++ b/src/main/java/dev/wolfieboy09/qstorage/block/disk_assembler/DiskAssemblerScreen.java @@ -31,7 +31,7 @@ protected void renderBg(@NotNull GuiGraphics graphics, float v, int i, int i1) { int progress = this.menu.getCurrentProgress(); int recipeTotalProgress = this.menu.getTotalProgress(); - int width = progress * 30 / recipeTotalProgress; + int width = recipeTotalProgress == 0 ? 0 : progress * 30 / recipeTotalProgress; graphics.blit(BACKGROUND_LOCATION, this.leftPos + 52, this.topPos + 25, 176, 0, width, 34); }