Compare commits

...
Author SHA1 Message Date
Maya 70a55239eb Merge branch 'master' into dev 2025-05-12 09:23:49 -05:00
lordIcocainandMaya c9cf92ca4a Fix cell math for distribution card (#291)
Co-authored-by: Maya <[email protected]>
2025-05-12 14:21:33 +00:00
Martin Robertz 00529ca1b3 Merge branch 'master' into dev
# Conflicts:
#	dependencies.gradle
2025-05-12 09:33:13 +02:00
Martin Robertz 5b1607a817 Merge remote-tracking branch 'lordIcocain/fix-cell-math' into dev 2025-05-12 09:32:41 +02:00
Martin Robertz 6e613b33af update 2025-05-12 09:31:48 +02:00
lordIcocain 1163beabdf correct singleByteAmount 2025-05-12 01:23:48 +03:00
lordIcocain f31956ecc5 simplify 2025-05-12 00:54:55 +03:00
lordIcocain 0c0a6655a5 fix math 2025-05-12 00:40:39 +03:00
2 changed files with 4 additions and 7 deletions

No files matched your search

+2 -2
View File
@@ -35,7 +35,7 @@
*/
dependencies {
api('com.github.GTNewHorizons:NotEnoughItems:2.7.40-GTNH:dev')
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-601-GTNH-pre:dev')
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-603-GTNH-pre:dev')
api('curse.maven:cofh-core-69162:2388751')
api('com.github.GTNewHorizons:waila:1.8.4:dev')
api("com.github.GTNewHorizons:GTNHLib:0.6.21:dev")
@@ -48,7 +48,7 @@ dependencies {
compileOnly('com.github.GTNewHorizons:ExtraCells2:2.5.35:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:ForestryMC:4.10.7:dev')
compileOnly('com.github.GTNewHorizons:EnderIO:2.9.12:dev')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.279:dev') {
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.282:dev') {
exclude group: 'com.github.GTNewHorizons', module: 'AE2FluidCraft-Rework'
exclude group: 'com.github.GTNewHorizons', module: 'Applied-Energistics-2-Unofficial'
}
@@ -226,12 +226,9 @@ public class FluidCellInventory implements IFluidCellInventory {
if (types == 0) types = this.getTotalFluidTypes();
if (l != null) {
if (restrictionLong > 0) {
remaining = Math.min((restrictionLong / types) - l.getStackSize(), this.getUnusedFluidCount());
remaining = Math.min((restrictionLong / types) - l.getStackSize(), getRemainingFluidCount());
} else {
remaining = (((this.getTotalBytes() / types)
- (int) Math.ceil((double) l.getStackSize() / singleByteAmount)
- getBytesPerType()) * singleByteAmount)
+ (singleByteAmount - l.getStackSize() % singleByteAmount);
remaining = (((getTotalBytes() / types) - getBytesPerType()) * singleByteAmount) - l.getStackSize();
}
} else {
if (restrictionLong > 0) {