mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-11-16 07:15:14 +01:00
c617bbf0c6
Upstream has released updates that appears 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: 9c078b78 #2985: Add Keybinds.SOCIAL_INTERACTIONS 281aecef Minecraft 1.16.4 support
31 lines
931 B
Diff
31 lines
931 B
Diff
From d999240c7a6c80605cd508cf23bfd3c01cddbce2 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 bf316417..2202c4d3 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
|
|
@@ -74,6 +74,16 @@ public class ProtocolConstants
|
|
ProtocolConstants.MINECRAFT_1_16_4
|
|
);
|
|
|
|
+ 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.29.2
|
|
|