From 4033d93513ee20e5f9597062fef36a7f576cdaf6 Mon Sep 17 00:00:00 2001 From: Troy Frew Date: Tue, 15 Nov 2016 09:07:51 -0500 Subject: [PATCH] Fixup ProtocolConstants diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java b/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java index 9a61fa4cf..ab949b4d6 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java @@ -27,7 +27,8 @@ public class ProtocolConstants "1.12.x", "1.13.x" ); - public static final List SUPPORTED_VERSION_IDS = Arrays.asList( ProtocolConstants.MINECRAFT_1_8, + public static final List SUPPORTED_VERSION_IDS = Arrays.asList( + ProtocolConstants.MINECRAFT_1_8, ProtocolConstants.MINECRAFT_1_9, ProtocolConstants.MINECRAFT_1_9_1, ProtocolConstants.MINECRAFT_1_9_2, @@ -42,6 +43,16 @@ public class ProtocolConstants ProtocolConstants.MINECRAFT_1_13_1 ); + public static final boolean isBeforeOrEq(int before, int other) + { + return before <= other; + } + + public static final boolean isAfterOrEq(int after, int other) + { + return after >= other; + } + public enum Direction { -- 2.18.0