Fix saying with gas turbine

This commit is contained in:
modmuss50 2015-06-06 09:07:23 +01:00
parent 6f80bf7e72
commit 9ee06aed89
2 changed files with 9 additions and 8 deletions

View file

@ -23,31 +23,26 @@ public class GrinderRecipeHandler extends GenericRecipeHander implements INeiBas
input.add(pStack);
}
if (recipeType.getInputs().size() > 1) {
PositionedStack pStack2 = new PositionedStack(ItemUtils.getStackWithAllOre(recipeType.getInputs().get(1)), 32 - offset, 44 - offset);
input.add(pStack2);
}
if (recipeType.getOutputs().size() > 0) {
PositionedStack pStack3 = new PositionedStack(recipeType.getOutputs().get(0), 2 - offset, 77 - offset);
outputs.add(pStack3);
}
if (recipeType.getInputs().size() > 1) {
PositionedStack pStack4 = new PositionedStack(recipeType.getOutputs().get(1), 2 - offset, 95 - offset);
outputs.add(pStack4);
}
if (recipeType.getInputs().size() > 2) {
PositionedStack pStack5 = new PositionedStack(recipeType.getOutputs().get(2), 4 - offset, 113 - offset);
outputs.add(pStack5);
}
if (recipeType.getInputs().size() > 3) {
PositionedStack pStack6 = new PositionedStack(recipeType.getOutputs().get(3), 5 - offset, 131 - offset);
outputs.add(pStack6);

View file

@ -91,20 +91,26 @@ public class TileGasTurbine extends TileEntity implements IWrenchable,
@Override
public int fill(ForgeDirection from, FluidStack resource, boolean doFill)
{
return tank.fill(resource, doFill);
int fill = tank.fill(resource, doFill);
tank.compareAndUpdate();
return fill;
}
@Override
public FluidStack drain(ForgeDirection from, FluidStack resource,
boolean doDrain)
{
return tank.drain(resource.amount, doDrain);
FluidStack drain = tank.drain(resource.amount, doDrain);
tank.compareAndUpdate();
return drain;
}
@Override
public FluidStack drain(ForgeDirection from, int maxDrain, boolean doDrain)
{
return tank.drain(maxDrain, doDrain);
FluidStack drain = tank.drain(maxDrain, doDrain);
tank.compareAndUpdate();
return drain;
}
@Override