File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/de/srendi/advancedperipherals/common/addons/appliedenergistics Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -931,11 +931,11 @@ public static List<Object> listCells(IGridNode node) {
931
931
932
932
if (!iterator .hasNext ()) return items ;
933
933
while (iterator .hasNext ()) {
934
- DriveBlockEntity entity = ( DriveBlockEntity ) iterator .next ().getService (IStorageProvider .class );
935
- if (entity == null )
934
+ IStorageProvider entity = iterator .next ().getService (IStorageProvider .class );
935
+ if (entity == null || !( entity instanceof DriveBlockEntity drive ) )
936
936
continue ;
937
937
938
- InternalInventory inventory = entity .getInternalInventory ();
938
+ InternalInventory inventory = drive .getInternalInventory ();
939
939
940
940
for (int i = 0 ; i < inventory .size (); i ++) {
941
941
ItemStack stack = inventory .getStackInSlot (i );
You can’t perform that action at this time.
0 commit comments