Skip to content

Commit 8de07c0

Browse files
committed
fix wrong conversion between fluid packet and real fluid
1 parent 067bd7b commit 8de07c0

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/main/java/com/glodblock/github/common/item/fake/FakeFluids.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,7 @@ public IAEFluidStack getAEStack(@Nullable IAEItemStack stack) {
142142
if (stack == null) {
143143
return null;
144144
}
145-
IAEFluidStack fluidStack = AEFluidStack.fromFluidStack(getStack(stack.createItemStack()));
146-
if (fluidStack == null) {
147-
return null;
148-
}
149-
fluidStack.setStackSize(stack.getStackSize());
150-
return fluidStack;
145+
return AEFluidStack.fromFluidStack(getStack(stack.createItemStack()));
151146
}
152147

153148
@Override

src/main/java/com/glodblock/github/integration/mek/FakeGases.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ public IAEGasStack getAEStack(@Nullable IAEItemStack stack) {
140140
if (gas == null || gas.getGas() == null) {
141141
return null;
142142
}
143-
IAEGasStack gasStack = new AEGasStack(gas);
144-
gasStack.setStackSize(stack.getStackSize());
145-
return gasStack;
143+
return new AEGasStack(gas);
146144
}
147145

148146
@Override

0 commit comments

Comments
 (0)