Skip to content

Commit 6b33a82

Browse files
committed
fix crash with ME bridge when ae2things not present
close #829
1 parent b8458d2 commit 6b33a82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/java/de/srendi/advancedperipherals/common/addons/ae2

‎src/main/java/de/srendi/advancedperipherals/common/addons/ae2/AEApi.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ static ICellWrapper of(Item item, ItemStack stack) {
855855
if (item instanceof IBasicCellItem cell) {
856856
return new BasicCellWrapper(cell, stack);
857857
}
858-
if (item instanceof IDISKCellItem cell) {
858+
if (APAddon.AE2THINGS.isLoaded() && item instanceof IDISKCellItem cell) {
859859
return new AE2ThingsDiskCellWrapper(cell, stack);
860860
}
861861
if (item instanceof AEDiskCellItem cell) {

0 commit comments

Comments
 (0)