Now sync to the client side tile, not the container.
This commit is contained in:
parent
17ed2d163d
commit
1e656b26e7
9 changed files with 25 additions and 20 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue