Waterfall/BungeeCord-Patches/0007-Fixup-ProtocolConstants.patch
Shane Freeder 097888c72a
Updated Upstream (BungeeCord)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

BungeeCord Changes:
78ca16df Minecraft 1.19.1 support
adc32d5a #3367: Add linux aarch64 native epoll support
12e45148 #3355,#3357: Fix possible NPE's in LoginEvent & PreLoginEvent
2022-07-27 19:35:10 +01:00

31 lines
946 B
Diff

From 7568c27acbd910ea05e9408a796e54ad3c9b6ddd 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 0471b9a5..aa5daf47 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
@@ -105,6 +105,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.37.1