From ea9ba2c4ccedfb92fa1376987f26b86512a3ee80 Mon Sep 17 00:00:00 2001 From: GlodBlock <1356392126@qq.com> Date: Tue, 26 Jul 2022 22:05:48 +0800 Subject: [PATCH] fix cell byte calulation --- .../glodblock/github/common/storage/FluidCellInventory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 4764f298..bbf3918e 100644 --- a/src/main/java/com/glodblock/github/common/storage/FluidCellInventory.java +++ b/src/main/java/com/glodblock/github/common/storage/FluidCellInventory.java @@ -180,8 +180,7 @@ public class FluidCellInventory implements IFluidCellInventory { @Override public long getRemainingFluidCount() { - final long remaining = this.getFreeBytes() * 8 + this.getUnusedFluidCount(); - + final long remaining = this.getFreeBytes() * 8 * 256 + this.getUnusedFluidCount(); return remaining > 0 ? remaining : 0; }