2019-05-28 01:40:07 +02:00
|
|
|
From f81d3c3a3e118e25cae855d6478ae86f9a1883ba 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
|
2019-05-28 01:40:07 +02:00
|
|
|
index e5ecdee5..bf139a34 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
|
2019-05-28 01:40:07 +02:00
|
|
|
@@ -52,6 +52,16 @@ public class ProtocolConstants
|
|
|
|
ProtocolConstants.MINECRAFT_1_14_2
|
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
|
|
|
|
{
|
|
|
|
|
|
|
|
--
|
2019-05-28 01:40:07 +02:00
|
|
|
2.21.0
|
2018-10-27 23:18:13 +02:00
|
|
|
|