2023-12-13 16:18:04 +01:00
|
|
|
From 14cad935db7d6dbae502d46d976de2b9c65c9564 Mon Sep 17 00:00:00 2001
|
2018-10-27 23:18:13 +02: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
|
2023-12-05 19:31:22 +01:00
|
|
|
index 6cb4c798..680af7d3 100644
|
2018-10-27 23:18:13 +02: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
|
2023-12-05 19:31:22 +01:00
|
|
|
@@ -116,6 +116,16 @@ public class ProtocolConstants
|
2021-05-15 03:46:23 +02:00
|
|
|
SUPPORTED_VERSION_IDS = supportedVersionIds.build();
|
|
|
|
}
|
2018-10-27 23:18:13 +02: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
|
|
|
|
{
|
|
|
|
|
|
|
|
--
|
2023-12-13 16:18:04 +01:00
|
|
|
2.43.0
|
2018-10-27 23:18:13 +02:00
|
|
|
|