Add nullcheck in Item Microscope to prevent Crash (#95)

This commit is contained in:
PLASMAchicken authored and GitHub committed 2025-11-29 08:02:13 -06:00
1 parent eb7320d9f0
commit 43fa73e378
1 file changed
+5
@@ -116,6 +116,11 @@ public class ItemCellMicroscope extends ItemThaumometer {
private void doCellScan(EntityPlayer p, ItemStack cell) {
IMEInventory<IAEItemStack> inv = AEApi.instance().registries().cell()
.getCellInventory(cell, (ISaveProvider) cellSaveManager, StorageChannel.ITEMS);
if (inv == null) {
return;
}
IItemList<IAEItemStack> itemList = inv
.getAvailableItems(AEApi.instance().storage().createItemList(), IterationCounter.fetchNewId());