From b969a1be9ad51ddf966229e37158974aa69971ee Mon Sep 17 00:00:00 2001 From: Srendi Date: Sun, 6 Oct 2024 15:31:01 +0200 Subject: [PATCH] Removed redundant null check --- .../common/addons/appliedenergistics/AppEngApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/srendi/advancedperipherals/common/addons/appliedenergistics/AppEngApi.java b/src/main/java/de/srendi/advancedperipherals/common/addons/appliedenergistics/AppEngApi.java index 60d5d9d02..3bc0c6d8e 100644 --- a/src/main/java/de/srendi/advancedperipherals/common/addons/appliedenergistics/AppEngApi.java +++ b/src/main/java/de/srendi/advancedperipherals/common/addons/appliedenergistics/AppEngApi.java @@ -563,7 +563,7 @@ public static List listCells(IGridNode node) { if (!iterator.hasNext()) return items; while (iterator.hasNext()) { IStorageProvider entity = iterator.next().getService(IStorageProvider.class); - if (entity == null || !(entity instanceof DriveBlockEntity drive)) + if (!(entity instanceof DriveBlockEntity drive)) continue; InternalInventory inventory = drive.getInternalInventory();