Update to 20w19a

This commit is contained in:
RednedEpic 2020-05-06 16:47:12 -05:00
parent 5dae5286db
commit b0b383a53d
3 changed files with 6 additions and 3 deletions

View file

@ -5,7 +5,7 @@
<groupId>com.github.steveice10</groupId>
<artifactId>mcprotocollib</artifactId>
<version>20w17a-SNAPSHOT</version>
<version>20w19a-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 = "20w17a";
public static final int PROTOCOL_VERSION = 713;
public static final String GAME_VERSION = "20w19a";
public static final int PROTOCOL_VERSION = 715;
// General Key Constants
public static final String PROFILE_KEY = "profile";

View file

@ -24,6 +24,7 @@ public class ServerRespawnPacket implements Packet {
private long hashedSeed;
private @NonNull GameMode gamemode;
private @NonNull WorldType worldType;
private boolean copyMetadata;
@Override
public void read(NetInput in) throws IOException {
@ -31,6 +32,7 @@ public class ServerRespawnPacket implements Packet {
this.hashedSeed = in.readLong();
this.gamemode = MagicValues.key(GameMode.class, in.readUnsignedByte());
this.worldType = MagicValues.key(WorldType.class, in.readString().toLowerCase());
this.copyMetadata = in.readBoolean();
}
@Override
@ -39,6 +41,7 @@ public class ServerRespawnPacket implements Packet {
out.writeLong(this.hashedSeed);
out.writeByte(MagicValues.value(Integer.class, this.gamemode));
out.writeString(MagicValues.value(String.class, this.worldType));
out.writeBoolean(this.copyMetadata);
}
@Override