mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-09-06 11:48:05 +02:00
5aa8f709bb
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: 23661737 Minecraft 1.16.3 support 5ab5a846 #2953: Fix player limit off by one
31 lines
931 B
Diff
31 lines
931 B
Diff
From 0c66158378f219a83d0a50443126c910c88b6fb3 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 da207d5f..f33bb5c4 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
|
|
@@ -72,6 +72,16 @@ public class ProtocolConstants
|
|
ProtocolConstants.MINECRAFT_1_16_3
|
|
);
|
|
|
|
+ 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.28.0
|
|
|