Merge pull request #283 from ReplayMod/1.12.2-dev

Update to MC 1.12.2
This commit is contained in:
Steven Smith 2017-09-20 07:52:58 -07:00 committed by GitHub
commit 299efaf248
4 changed files with 13 additions and 13 deletions

View file

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.steveice10</groupId>
<artifactId>mcprotocollib</artifactId>
<version>1.12.1-1-SNAPSHOT</version>
<version>1.12.2-1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>MCProtocolLib</name>

View file

@ -2,8 +2,8 @@ package com.github.steveice10.mc.protocol;
public class MinecraftConstants {
// General Constants
public static final String GAME_VERSION = "1.12.1";
public static final int PROTOCOL_VERSION = 338;
public static final String GAME_VERSION = "1.12.2";
public static final int PROTOCOL_VERSION = 340;
// General Key Constants
public static final String PROFILE_KEY = "profile";

View file

@ -7,27 +7,27 @@ import com.github.steveice10.packetlib.io.NetOutput;
import java.io.IOException;
public class ClientKeepAlivePacket extends MinecraftPacket {
private int id;
private long id;
@SuppressWarnings("unused")
private ClientKeepAlivePacket() {
}
public ClientKeepAlivePacket(int id) {
public ClientKeepAlivePacket(long id) {
this.id = id;
}
public int getPingId() {
public long getPingId() {
return this.id;
}
@Override
public void read(NetInput in) throws IOException {
this.id = in.readVarInt();
this.id = in.readLong();
}
@Override
public void write(NetOutput out) throws IOException {
out.writeVarInt(this.id);
out.writeLong(this.id);
}
}

View file

@ -7,27 +7,27 @@ import com.github.steveice10.packetlib.io.NetOutput;
import java.io.IOException;
public class ServerKeepAlivePacket extends MinecraftPacket {
private int id;
private long id;
@SuppressWarnings("unused")
private ServerKeepAlivePacket() {
}
public ServerKeepAlivePacket(int id) {
public ServerKeepAlivePacket(long id) {
this.id = id;
}
public int getPingId() {
public long getPingId() {
return this.id;
}
@Override
public void read(NetInput in) throws IOException {
this.id = in.readVarInt();
this.id = in.readLong();
}
@Override
public void write(NetOutput out) throws IOException {
out.writeVarInt(this.id);
out.writeLong(this.id);
}
}