2019-02-26 20:53:11 +01:00
|
|
|
From dd1e4f5703b3e243d5e6cc45670f2c5b41128b76 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-02-26 20:53:11 +01:00
|
|
|
index 09c2bebf..d9a3c7e5 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-02-26 20:53:11 +01:00
|
|
|
@@ -45,6 +45,16 @@ public class ProtocolConstants
|
2018-10-27 23:18:13 +02:00
|
|
|
ProtocolConstants.MINECRAFT_1_13_2
|
|
|
|
);
|
|
|
|
|
|
|
|
+ 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-02-26 20:53:11 +01:00
|
|
|
2.21.0
|
2018-10-27 23:18:13 +02:00
|
|
|
|