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) {
931931
932932 if (!iterator .hasNext ()) return items ;
933933 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 ) )
936936 continue ;
937937
938- InternalInventory inventory = entity .getInternalInventory ();
938+ InternalInventory inventory = drive .getInternalInventory ();
939939
940940 for (int i = 0 ; i < inventory .size (); i ++) {
941941 ItemStack stack = inventory .getStackInSlot (i );
You can’t perform that action at this time.
0 commit comments