This commit is contained in:
modmuss50 2015-08-26 10:48:09 +01:00
parent 2e00382632
commit eb25b96355
2 changed files with 4 additions and 2 deletions

View file

@ -5,7 +5,7 @@ import net.minecraft.inventory.Slot;
import techreborn.client.SlotOutput;
import techreborn.tiles.TileCentrifuge;
public class ContainerCentrifuge extends TechRebornContainer {
public class ContainerCentrifuge extends ContainerCrafting {
EntityPlayer player;
@ -19,7 +19,8 @@ public class ContainerCentrifuge extends TechRebornContainer {
}
public ContainerCentrifuge(TileCentrifuge tileCentrifuge, EntityPlayer player) {
tile = tileCentrifuge;
super(tileCentrifuge.crafter);
tile = tileCentrifuge;
this.player = player;
// input

View file

@ -58,5 +58,6 @@ public class GuiCentrifuge extends GuiContainer {
this.fontRendererObj.drawString(namePt1, 98, 6, 4210752);
this.fontRendererObj.drawString(namePt2, 98, 14, 4210752);
this.fontRendererObj.drawString(I18n.format("container.inventory", new Object[0]), 8, this.ySize - 96 + 2, 4210752);
this.fontRendererObj.drawString(centrifuge.getProgressScaled(100) + "%", 98, this.ySize - 96 + 2, 4210752);
}
}