Skip to content

Commit

Permalink
🐛 fix(Tesseract): Check if menu == null when updating items in a menu…
Browse files Browse the repository at this point in the history
… part 2
  • Loading branch information
ProfElements committed Sep 10, 2024
1 parent 7bee932 commit f2840ca
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ private void sendItemsAndCharge(Block b, String wirelessLocation) {
BlockMenu input = BlockStorage.getInventory(tesseractPair);
BlockMenu output = BlockStorage.getInventory(b);

if (input == null) {
return;
}
if (output == null) {
return;
}

updateKnowledgePane(output, getCharge(b.getLocation()));

for (int i : getInputSlots()) {
Expand Down

0 comments on commit f2840ca

Please sign in to comment.