From aae22b028e4f6dbef91ff704db7aa1c031df7ff3 Mon Sep 17 00:00:00 2001 From: GlodBlock <1356392126@qq.com> Date: Sun, 9 Jan 2022 20:56:22 +0800 Subject: yottank ec2 support --- src/main/java/goodgenerator/common/container/YOTTankGUIContainer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/goodgenerator/common/container') diff --git a/src/main/java/goodgenerator/common/container/YOTTankGUIContainer.java b/src/main/java/goodgenerator/common/container/YOTTankGUIContainer.java index 0a425e358e..5880f9e5fb 100644 --- a/src/main/java/goodgenerator/common/container/YOTTankGUIContainer.java +++ b/src/main/java/goodgenerator/common/container/YOTTankGUIContainer.java @@ -88,14 +88,14 @@ public class YOTTankGUIContainer extends GT_Container_MultiMachineEM { private void sendStateUpdate(ICrafting clientHandle) { final int bytes = Integer.BYTES * 3 + Character.BYTES * (currentStore.length() + store.length() + fluidName.length()); for (int i = 0; i < bytes; i++) { - clientHandle.sendProgressBarUpdate(this, i + 21, buffer.get(i)); + clientHandle.sendProgressBarUpdate(this, i + 300, buffer.get(i)); } } @SideOnly(Side.CLIENT) public void updateProgressBar(int index, int value) { super.updateProgressBar(index, value); - index = index - 21; + index = index - 300; if(index >= 0 && index < buffer.capacity()) { buffer.put(index, (byte) value); } -- cgit