Some injector work

dev
Arona Jones 2016-02-06 11:22:01 +00:00
parent a96338d507
commit dfe16aada6
3 changed files with 4 additions and 7 deletions

View File

@ -36,9 +36,7 @@ public class GuiInjector extends BaseContainerGui
this.drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, this.xSize, this.ySize);
this.mc.renderEngine.bindTexture(guitexture);
this.drawTexturedModalRect(this.guiLeft + 8, this.guiTop + 15, 176, 14, 20, 49);
this.drawTexturedModalRect(this.guiLeft + 40, this.guiTop + 15, 176, 14, 20, 49);
this.drawTexturedModalRect(this.guiLeft + 74, this.guiTop + 15, 176, 14, 20, 49);
this.drawTexturedModalRect(this.guiLeft + 74, this.guiTop + 24, 176, 14, 20, 49);
}
@Override

View File

@ -61,10 +61,9 @@ public class TileInjector extends BaseTileWithInventory implements IOpenableGUI,
{
ItemStack stack = FluidUtils.drainFluidContainer(this.buffer, this.inventory[0]);
if ((this.inventory[0] != null) && OreDictionary.itemMatches(this.inventory[0], stack, true))
this.inventory[0].stackSize += stack.stackSize;
this.inventory[0].stackSize -= stack.stackSize;
else if (this.inventory[0] == null)
this.inventory[0] = stack.copy();
this.decrStackSize(0, stack.stackSize);
}
if (this.inventory[1] != null)
{

View File

@ -35,8 +35,8 @@ public class ContainerInjector extends BaseContainer
this.tileent = tile;
this.setTile(this.tileent);
this.addSlotToContainer(new SlotFluidContainer(tile, 0, 116, 61));
this.addSlotToContainer(new SlotFluidContainer(tile, 1, 135, 61));
this.addSlotToContainer(new SlotFluidContainer(tile, 0, 22, 41));
this.addSlotToContainer(new SlotFluidContainer(tile, 1, 139, 41));
int var3;