TimeUpdate
This commit is contained in:
@@ -9,6 +9,7 @@ import lombok.RequiredArgsConstructor;
|
||||
import mc.core.network.NetChannel;
|
||||
import mc.core.network.SCPacket;
|
||||
import mc.core.network.proto_1_12_2.packets.KeepAlivePacket;
|
||||
import mc.core.network.proto_1_12_2.packets.TimeUpdatePacket;
|
||||
import mc.core.text.Text;
|
||||
|
||||
import java.util.Random;
|
||||
@@ -24,8 +25,8 @@ public class WrapperNetChannel implements NetChannel {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendTimeUpdate(long value) {
|
||||
|
||||
public void sendTimeUpdate(long time, long age) {
|
||||
writeAndFlush(new TimeUpdatePacket(time, age));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user