mirror of
https://github.com/GTNewHorizons/ThaumicEnergistics.git
synced 2026-10-25 20:32:27 +00:00
Add nullcheck in Item Microscope to prevent Crash (#95)
This commit is contained in:
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());
|
||||
|
||||
|
||||
Reference in new issue
Block a user