2018-07-20 22:39:35 +02:00
|
|
|
From 30402ae45a5034a5b6f1b4cfccc28fd3da1f139f Mon Sep 17 00:00:00 2001
|
2016-11-15 16:32:02 +01:00
|
|
|
From: Troy Frew <fuzzy_bot@arenaga.me>
|
|
|
|
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
|
2018-07-20 22:39:35 +02:00
|
|
|
index c59e11cf..9c367d3a 100644
|
2016-11-15 16:32:02 +01:00
|
|
|
--- a/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java
|
|
|
|
+++ b/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java
|
2018-07-20 22:39:35 +02:00
|
|
|
@@ -27,7 +27,8 @@ public class ProtocolConstants
|
2018-07-20 04:23:11 +02:00
|
|
|
"1.12.x",
|
|
|
|
"1.13.x"
|
2016-11-15 16:32:02 +01:00
|
|
|
);
|
|
|
|
- public static final List<Integer> SUPPORTED_VERSION_IDS = Arrays.asList( ProtocolConstants.MINECRAFT_1_8,
|
|
|
|
+ public static final List<Integer> SUPPORTED_VERSION_IDS = Arrays.asList(
|
|
|
|
+ ProtocolConstants.MINECRAFT_1_8,
|
|
|
|
ProtocolConstants.MINECRAFT_1_9,
|
|
|
|
ProtocolConstants.MINECRAFT_1_9_1,
|
|
|
|
ProtocolConstants.MINECRAFT_1_9_2,
|
2018-07-20 22:39:35 +02:00
|
|
|
@@ -42,6 +43,16 @@ public class ProtocolConstants
|
|
|
|
ProtocolConstants.MINECRAFT_1_13_R
|
2016-11-15 16:32:02 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
+ 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
|
|
|
|
{
|
|
|
|
|
|
|
|
--
|
2018-07-20 04:23:11 +02:00
|
|
|
2.18.0
|
2016-11-15 16:32:02 +01:00
|
|
|
|