Revert "Update to latest commit(Master)"
This commit is contained in:
parent
8a5df0fc4b
commit
5396551891
3 changed files with 6 additions and 9 deletions
|
@ -51,8 +51,6 @@ public class PacketSetRecipe implements INetworkPacket<PacketSetRecipe> {
|
|||
} else {
|
||||
this.recipe = recipe.getRegistryName();
|
||||
}
|
||||
|
||||
System.out.println(this.recipe);
|
||||
this.custom = custom;
|
||||
}
|
||||
|
||||
|
@ -76,7 +74,6 @@ public class PacketSetRecipe implements INetworkPacket<PacketSetRecipe> {
|
|||
@Override
|
||||
public void processData(PacketSetRecipe message, MessageContext context) {
|
||||
TileEntity tileEntity = context.getServerHandler().player.world.getTileEntity(message.pos);
|
||||
;
|
||||
if (tileEntity instanceof TileAutoCraftingTable) {
|
||||
((TileAutoCraftingTable) tileEntity).setCurrentRecipe(message.recipe, message.custom);
|
||||
}
|
||||
|
|
|
@ -457,4 +457,4 @@ public class TileAutoCraftingTable extends TilePowerAcceptor implements IContain
|
|||
public boolean canExtractItem(int index, ItemStack stack, EnumFacing direction) {
|
||||
return index == 9 || index == 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ public class TileElectricFurnace extends TilePowerAcceptor
|
|||
@Override
|
||||
public void update() {
|
||||
if (world.isRemote){ return; }
|
||||
|
||||
|
||||
super.update();
|
||||
this.charge(2);
|
||||
|
||||
|
@ -91,7 +91,7 @@ public class TileElectricFurnace extends TilePowerAcceptor
|
|||
if (updateInventory) {
|
||||
this.markDirty();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void cookItems() {
|
||||
|
@ -224,8 +224,8 @@ public class TileElectricFurnace extends TilePowerAcceptor
|
|||
@Override
|
||||
public BuiltContainer createContainer(final EntityPlayer player) {
|
||||
return new ContainerBuilder("electricfurnace").player(player.inventory).inventory().hotbar().addInventory()
|
||||
.tile(this).slot(0, 55, 45).outputSlot(1, 101, 45).energySlot(2, 8, 72).syncEnergyValue()
|
||||
.syncIntegerValue(this::getBurnTime, this::setBurnTime).addInventory().create(this);
|
||||
.tile(this).slot(0, 55, 45).outputSlot(1, 101, 45).energySlot(2, 8, 72).syncEnergyValue()
|
||||
.syncIntegerValue(this::getBurnTime, this::setBurnTime).addInventory().create(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -247,4 +247,4 @@ public class TileElectricFurnace extends TilePowerAcceptor
|
|||
public boolean canBeUpgraded() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue