Search in sources :

Example 1 with SetTimePacket

use of org.dragonet.protocol.packets.SetTimePacket in project DragonProxy by DragonetMC.

the class PCUpdateTimePacketTranslator method translate.

public PEPacket[] translate(UpstreamSession session, ServerUpdateTimePacket packet) {
    SetTimePacket pk = new SetTimePacket();
    pk.time = (int) Math.abs(packet.getTime());
    return new PEPacket[] { pk };
}
Also used : PEPacket(org.dragonet.protocol.PEPacket) SetTimePacket(org.dragonet.protocol.packets.SetTimePacket)

Aggregations

PEPacket (org.dragonet.protocol.PEPacket)1 SetTimePacket (org.dragonet.protocol.packets.SetTimePacket)1