mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-12-28 03:27:37 +01:00
41 lines
1.4 KiB
Diff
41 lines
1.4 KiB
Diff
From 5adbaea1b5db0b403749e7f4c9a5c0ebe7c2df67 Mon Sep 17 00:00:00 2001
|
|
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
|
|
index b2dc9423..c23b1947 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
|
|
@@ -26,7 +26,8 @@ public class ProtocolConstants
|
|
"1.12.x",
|
|
"1.13.x"
|
|
);
|
|
- 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,
|
|
@@ -40,6 +41,16 @@ public class ProtocolConstants
|
|
ProtocolConstants.MINECRAFT_1_13
|
|
);
|
|
|
|
+ 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
|
|
|