Skip to content

Commit

Permalink
fixed gas terminal not selecting gas
Browse files Browse the repository at this point in the history
  • Loading branch information
DrummerMC committed Nov 8, 2017
1 parent bf16c60 commit 3d6128e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static class Handler implements IPacketHandlerServer {
@Override
public void onPacketData(PacketBufferEC data, EntityPlayerMP player) throws IOException {
Fluid fluid = data.readFluid();
ContainerStorage containerStorage = GuiUtil.getContainer(player, ContainerFluidStorage.class);
ContainerStorage containerStorage = GuiUtil.getContainer(player, ContainerStorage.class);
if (fluid == null || containerStorage == null) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/extracells/part/gas/PartGasTerminal.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class PartGasTerminal extends PartFluidTerminal {
@Optional.Method(modid = "MekanismAPI|gas")
def doWorkGas {
val secondSlot: ItemStack = this.inventory.getStackInSlot(1)
if (secondSlot != null && secondSlot.getCount >= secondSlot.getMaxStackSize) return
if (secondSlot != null && (!secondSlot.isEmpty) && secondSlot.getCount >= secondSlot.getMaxStackSize) return
var container: ItemStack = this.inventory.getStackInSlot(0)
if (container == null || container.isEmpty)
doNextFill = false
Expand Down

0 comments on commit 3d6128e

Please sign in to comment.