2020-02-11 04:35:46 +00:00
|
|
|
From e682e63dd6c0e1fdb2038a09fa2af72c1b7b33fc Mon Sep 17 00:00:00 2001
|
2019-12-15 18:28:44 +00:00
|
|
|
From: BlackHole <black-hole@live.com>
|
|
|
|
Date: Sun, 15 Dec 2019 19:12:39 +0100
|
|
|
|
Subject: [PATCH] Add CraftMagicNumbers.isSupportedApiVersion()
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
2020-02-01 15:20:54 +00:00
|
|
|
index b1e1b59d4..770375ed4 100644
|
2019-12-15 18:28:44 +00:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
2020-02-01 15:20:54 +00:00
|
|
|
@@ -308,6 +308,11 @@ public final class CraftMagicNumbers implements UnsafeValues {
|
2019-12-15 18:28:44 +00:00
|
|
|
public com.destroystokyo.paper.util.VersionFetcher getVersionFetcher() {
|
|
|
|
return new com.destroystokyo.paper.PaperVersionFetcher();
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public boolean isSupportedApiVersion(String apiVersion) {
|
|
|
|
+ return apiVersion != null && SUPPORTED_API.contains(apiVersion);
|
|
|
|
+ }
|
|
|
|
// Paper end
|
|
|
|
|
|
|
|
/**
|
|
|
|
--
|
2020-01-22 02:12:53 +00:00
|
|
|
2.25.0
|
2019-12-15 18:28:44 +00:00
|
|
|
|