From 1163beabdfc365b81736d85c0ce8a896dabfafe7 Mon Sep 17 00:00:00 2001 From: lordIcocain Date: Mon, 12 May 2025 01:23:48 +0300 Subject: [PATCH] correct singleByteAmount --- .../com/glodblock/github/common/storage/FluidCellInventory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/glodblock/github/common/storage/FluidCellInventory.java b/src/main/java/com/glodblock/github/common/storage/FluidCellInventory.java index 2f9e7df4..f1c54283 100644 --- a/src/main/java/com/glodblock/github/common/storage/FluidCellInventory.java +++ b/src/main/java/com/glodblock/github/common/storage/FluidCellInventory.java @@ -228,7 +228,7 @@ public class FluidCellInventory implements IFluidCellInventory { if (restrictionLong > 0) { remaining = Math.min((restrictionLong / types) - l.getStackSize(), getRemainingFluidCount()); } else { - remaining = (((getTotalBytes() / types) - getBytesPerType()) * 8) - l.getStackSize(); + remaining = (((getTotalBytes() / types) - getBytesPerType()) * singleByteAmount) - l.getStackSize(); } } else { if (restrictionLong > 0) {