From f980f4a08f5573e1b46a288710ecea8c29f01e7e 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 b040b1d4..bb37ba04 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 @@ -96,6 +96,16 @@ public class ProtocolConstants SUPPORTED_VERSION_IDS = supportedVersionIds.build(); } + 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.30.1 (Apple Git-130)