Skip to content

Commit 3d6128e

Browse files
committed
fixed gas terminal not selecting gas
1 parent bf16c60 commit 3d6128e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/scala/extracells/network/packet/part/PacketStorageSelectFluid.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static class Handler implements IPacketHandlerServer {
3535
@Override
3636
public void onPacketData(PacketBufferEC data, EntityPlayerMP player) throws IOException {
3737
Fluid fluid = data.readFluid();
38-
ContainerStorage containerStorage = GuiUtil.getContainer(player, ContainerFluidStorage.class);
38+
ContainerStorage containerStorage = GuiUtil.getContainer(player, ContainerStorage.class);
3939
if (fluid == null || containerStorage == null) {
4040
return;
4141
}

src/main/scala/extracells/part/gas/PartGasTerminal.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class PartGasTerminal extends PartFluidTerminal {
3333
@Optional.Method(modid = "MekanismAPI|gas")
3434
def doWorkGas {
3535
val secondSlot: ItemStack = this.inventory.getStackInSlot(1)
36-
if (secondSlot != null && secondSlot.getCount >= secondSlot.getMaxStackSize) return
36+
if (secondSlot != null && (!secondSlot.isEmpty) && secondSlot.getCount >= secondSlot.getMaxStackSize) return
3737
var container: ItemStack = this.inventory.getStackInSlot(0)
3838
if (container == null || container.isEmpty)
3939
doNextFill = false

0 commit comments

Comments
 (0)