Skip to content

Commit

Permalink
fix crash with breaking double chest with heat frame attached
Browse files Browse the repository at this point in the history
  • Loading branch information
desht committed Aug 10, 2023
1 parent 5430ecb commit a5ebbe6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ private byte doCooking() {
}

private boolean tryCookSlot(IItemHandler handler, int slot) {
if (slot < 0 || slot >= handler.getSlots()) {
return false;
}
ItemStack stack = handler.getStackInSlot(slot);
if (!stack.isEmpty()) {
SimpleContainer inv = new SimpleContainer(1);
Expand Down Expand Up @@ -238,6 +241,9 @@ private byte doCooling() {
}

private boolean tryCoolSlot(IItemHandler handler, int slot) {
if (slot < 0 || slot >= handler.getSlots()) {
return false;
}
ItemStack stack = handler.getStackInSlot(slot);
if (stack.isEmpty()) return false;

Expand Down

0 comments on commit a5ebbe6

Please sign in to comment.