mirror of
https://github.com/PaperMC/Waterfall.git
synced 2025-01-07 16:37:39 +01:00
80a64a6f08
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: 7e47490e Minecraft 1.18.2 support
31 lines
946 B
Diff
31 lines
946 B
Diff
From dbfa2c6ed3e8d0843dd28523c5ee02f071f9b9fc 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 7da127fb..6360818c 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
|
|
@@ -100,6 +100,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.35.1
|
|
|