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 #262 from SpigotMC/master
Browse files Browse the repository at this point in the history
Merge with upstream
  • Loading branch information
John authored Jul 24, 2019
2 parents 368028c + 5c6bc18 commit f249233
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class ProtocolConstants
public static final int MINECRAFT_1_14_1 = 480;
public static final int MINECRAFT_1_14_2 = 485;
public static final int MINECRAFT_1_14_3 = 490;
public static final int MINECRAFT_1_14_4 = 498;
public static final List<String> SUPPORTED_VERSIONS = Arrays.asList(
"1.7.x",
"1.8.x",
Expand Down Expand Up @@ -55,7 +56,8 @@ public class ProtocolConstants
ProtocolConstants.MINECRAFT_1_14,
ProtocolConstants.MINECRAFT_1_14_1,
ProtocolConstants.MINECRAFT_1_14_2,
ProtocolConstants.MINECRAFT_1_14_3
ProtocolConstants.MINECRAFT_1_14_3,
ProtocolConstants.MINECRAFT_1_14_4
);

public enum Direction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ protected FloatArgumentType read(ByteBuf buf)
{
byte flags = buf.readByte();
float min = ( flags & 0x1 ) != 0 ? buf.readFloat() : -Float.MAX_VALUE;
float max = ( flags & 0x2 ) != 0 ? buf.readFloat() : -Float.MAX_VALUE;
float max = ( flags & 0x2 ) != 0 ? buf.readFloat() : Float.MAX_VALUE;

return FloatArgumentType.floatArg( min, max );
}
Expand Down Expand Up @@ -386,7 +386,7 @@ protected DoubleArgumentType read(ByteBuf buf)
{
byte flags = buf.readByte();
double min = ( flags & 0x1 ) != 0 ? buf.readDouble() : -Double.MAX_VALUE;
double max = ( flags & 0x2 ) != 0 ? buf.readDouble() : -Double.MAX_VALUE;
double max = ( flags & 0x2 ) != 0 ? buf.readDouble() : Double.MAX_VALUE;

return DoubleArgumentType.doubleArg( min, max );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public static EntityMap getEntityMap(int version)
case ProtocolConstants.MINECRAFT_1_14_1:
case ProtocolConstants.MINECRAFT_1_14_2:
case ProtocolConstants.MINECRAFT_1_14_3:
case ProtocolConstants.MINECRAFT_1_14_4:
return EntityMap_1_14.INSTANCE;
}
throw new RuntimeException( "Version " + version + " has no entity map" );
Expand Down

0 comments on commit f249233

Please sign in to comment.