Skip to content

Commit

Permalink
Merge branch 'refs/heads/dev/1.19.2' into dev/1.20.1
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
#	build.gradle
#	settings.gradle
#	src/main/java/de/srendi/advancedperipherals/common/addons/appliedenergistics/AppEngApi.java
  • Loading branch information
SirEndii committed Apr 11, 2024
2 parents 4036e91 + 33c4681 commit dedbe13
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ public static long getTotalItemStorage(IGridNode node) {
if (storageCell.getKeyType() != AEKeyType.items())
continue;
total += storageCell.getKiloBytes() * 1024L;
} else if (APAddons.aeAdditionsLoaded && (stack.getItem() instanceof StorageCell storageCell)) {
if (storageCell.getKeyType() != AEKeyType.items())
continue;
total += storageCell.getKiloBytes() * 1024;
}
}
}
Expand Down Expand Up @@ -391,6 +395,10 @@ public static long getTotalFluidStorage(IGridNode node) {
if (storageCell.getKeyType() != AEKeyType.fluids())
continue;
total += storageCell.getKiloBytes() * 1024L;
} else if (APAddons.aeAdditionsLoaded && (stack.getItem() instanceof StorageCell storageCell)) {
if (storageCell.getKeyType() != AEKeyType.fluids())
continue;
total += storageCell.getKiloBytes() * 1024;
}
}
}
Expand Down

0 comments on commit dedbe13

Please sign in to comment.