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

@ -5,7 +5,7 @@ import net.minecraft.inventory.Slot;
import techreborn.client.SlotOutput;
import techreborn.tiles.TileAlloySmelter;
public class ContainerAlloySmelter extends TechRebornContainer {
public class ContainerAlloySmelter extends ContainerCrafting {
EntityPlayer player;
@ -22,6 +22,7 @@ public class ContainerAlloySmelter extends TechRebornContainer {
public ContainerAlloySmelter(TileAlloySmelter tileAlloysmelter,
EntityPlayer player)
{
super(tileAlloysmelter.crafter);
tile = tileAlloysmelter;
this.player = player;

View file

@ -9,9 +9,9 @@ public abstract class ContainerCrafting extends TechRebornContainer {
RecipeCrafter crafter;
public int currentTickTime = 0;
public int currentNeededTicks = 0;
public int energy;
int currentTickTime = 0;
int currentNeededTicks = 0;
int energy;
public ContainerCrafting(RecipeCrafter crafter) {
this.crafter = crafter;
@ -52,5 +52,8 @@ public abstract class ContainerCrafting extends TechRebornContainer {
} else if(id == 2){
this.energy = value;
}
this.crafter.currentTickTime = currentTickTime;
this.crafter.currentNeededTicks = currentNeededTicks;
this.crafter.energy.setEnergyStored(energy);
}
}