Now sync to the client side tile, not the container.

This commit is contained in:
modmuss50 2015-05-31 10:45:08 +01:00
parent 17ed2d163d
commit 1e656b26e7
9 changed files with 25 additions and 20 deletions

View file

@ -42,12 +42,12 @@ public class GuiAssemblingMachine extends GuiContainer {
int j = 0;
if(this.containerAssemblingMachine.currentTickTime != 0){
j = this.containerAssemblingMachine.currentTickTime * 20 / this.containerAssemblingMachine.currentNeededTicks;
if(this.assemblingmachine.crafter.currentTickTime != 0){
j = this.assemblingmachine.crafter.currentTickTime * 20 / this.assemblingmachine.crafter.currentNeededTicks;
}
this.drawTexturedModalRect(k + 86, l + 34, 176, 14, j + 1, 16);
j = this.containerAssemblingMachine.energy * 12 / this.assemblingmachine.energy.getCapacity();
j = (int) (this.assemblingmachine.energy.getEnergyStored() * 12 / this.assemblingmachine.energy.getCapacity());
if(j > 0) {
this.drawTexturedModalRect(k + 56, l + 36 + 12 - j, 176, 12 - j, 14, j + 2);
}