Update to MC 1.12.2

This commit is contained in:
Jonas Herzig 2017-09-19 09:13:00 +02:00
parent 4adf969385
commit f9c86c5aa5
4 changed files with 13 additions and 13 deletions

View file

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

View file

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

View file

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