Skip to content

Commit 559c9ff

Browse files
committed
Merge remote-tracking branch 'origin/master-26-lts' into master-26
2 parents cbe23b9 + 14dedde commit 559c9ff

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

CHANGELOG-26.1.2.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# Changelog for Minecraft 26.1.2
22
All notable changes to this project will be documented in this file.
33

4+
<a name="26.1.2-1.30.1"></a>
5+
## [26.1.2-1.30.1](https://github.com/CyclopsMC/CyclopsCore/compare/26.1.2-1.30.0...26.1.2-1.30.1) - 2026-06-28 14:08:16
6+
7+
### Fixed
8+
* Fix capacity-based fluid capability not taking into account stack size
9+
410
<a name="26.1.2-1.30.0"></a>
5-
## [26.1.2-1.30.0](https://github.com/CyclopsMC/CyclopsCore/compare/26.1.2-1.29.9...26.1.2-1.30.0) - 2026-06-14 13:02:01
11+
## [26.1.2-1.30.0](https://github.com/CyclopsMC/CyclopsCore/compare/26.1.2-1.29.9...26.1.2-1.30.0) - 2026-06-14 13:02:01 +0200
612

713
### Added
814
* Add SlotSingleIngredient

loader-neoforge/src/main/java/org/cyclops/cyclopscore/capability/fluid/FluidHandlerItemCapacity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void setTankCapacity(int tank, int capacity, TransactionContext transacti
6363

6464
@Override
6565
public int getTankCapacity(int tank) {
66-
return itemAccess.getResource().getOrDefault(RegistryEntries.COMPONENT_CAPACITY, this.capacity);
66+
return itemAccess.getAmount() * itemAccess.getResource().getOrDefault(RegistryEntries.COMPONENT_CAPACITY, this.capacity);
6767
}
6868

6969
@Override
@@ -73,7 +73,7 @@ protected int getCapacity(int index, FluidResource resource) {
7373

7474
@Override
7575
public long getCapacityAsLong(int index, FluidResource resource) {
76-
return getTankCapacity(index);
76+
return (long) itemAccess.getAmount() * itemAccess.getResource().getOrDefault(RegistryEntries.COMPONENT_CAPACITY, this.capacity);
7777
}
7878

7979
@Override
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
As always, don't forget to backup your world before updating!
2+
3+
Fixes:
4+
* Fix capacity-based fluid capability not taking into account stack size

0 commit comments

Comments
 (0)