2023-09-21 18:59:49 +02:00
|
|
|
From d86bb6401198008a6cc41ab73ebd1f253322ff7c 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-09-21 18:59:49 +02:00
|
|
|
index 7d5e2635..a0dd9be6 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-09-21 18:59:49 +02:00
|
|
|
@@ -114,6 +114,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-09-21 12:33:23 +02:00
|
|
|
2.42.0
|
2018-10-27 23:18:13 +02:00
|
|
|
|