Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #257 from SpigotMC/master
Browse files Browse the repository at this point in the history
Minecraft 1.14.2 support
  • Loading branch information
John authored May 28, 2019
2 parents db8c11f + 8fda060 commit a53be5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class ProtocolConstants
public static final int MINECRAFT_1_13_2 = 404;
public static final int MINECRAFT_1_14 = 477;
public static final int MINECRAFT_1_14_1 = 480;
public static final int MINECRAFT_1_14_2 = 485;
public static final List<String> SUPPORTED_VERSIONS = Arrays.asList(
"1.7.x",
"1.8.x",
Expand Down Expand Up @@ -51,7 +52,8 @@ public class ProtocolConstants
ProtocolConstants.MINECRAFT_1_13_1,
ProtocolConstants.MINECRAFT_1_13_2,
ProtocolConstants.MINECRAFT_1_14,
ProtocolConstants.MINECRAFT_1_14_1
ProtocolConstants.MINECRAFT_1_14_1,
ProtocolConstants.MINECRAFT_1_14_2
);

public enum Direction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public static EntityMap getEntityMap(int version)
return EntityMap_1_13.INSTANCE;
case ProtocolConstants.MINECRAFT_1_14:
case ProtocolConstants.MINECRAFT_1_14_1:
case ProtocolConstants.MINECRAFT_1_14_2:
return EntityMap_1_14.INSTANCE;
}
throw new RuntimeException( "Version " + version + " has no entity map" );
Expand Down

0 comments on commit a53be5e

Please sign in to comment.