Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.

Commit ac628d5

Browse files
authored
Merge pull request #39 from KhanhPham05/1.18-update
Fix divide by zero in NetherBrickFurnaceControllerScreen
2 parents 284aa82 + f6ab049 commit ac628d5

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed
500 Bytes
Binary file not shown.
102 Bytes
Binary file not shown.
36 Bytes
Binary file not shown.

src/main/java/com/khanhpham/tothemoon/core/multiblock/block/brickfurnace/NetherBrickFurnaceControllerBlockEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public class NetherBrickFurnaceControllerBlockEntity extends MultiblockEntity im
7272
private final NonNullList<Boolean> partDefinition = NonNullList.withSize(MULTIBLOCK_SIZE, false);
7373
private final Multiblock.Builder builder = Multiblock.Builder.setup(MULTIBLOCK_SIZE);
7474
private int smeltingTime;
75-
private static final int blazeFuelCapacity = 1000;
75+
static final int blazeFuelCapacity = 1000;
7676
private int blazeFuel;
7777
private final ContainerData data = new ContainerData() {
7878
@Override

src/main/java/com/khanhpham/tothemoon/core/multiblock/block/brickfurnace/NetherBrickFurnaceControllerMenu.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,6 @@ public int getBurningProcess() {
126126
}
127127

128128
public int getBlazeFuelCapacity() {
129-
return this.data.get(5);
129+
return data.get(5) == 0 ? NetherBrickFurnaceControllerBlockEntity.blazeFuelCapacity : data.get(5);
130130
}
131131
}

0 commit comments

Comments
 (0)