26 lines
981 B
Diff
26 lines
981 B
Diff
|
From 44e4be932907ddf286204247fc0bfd3d84dff770 Mon Sep 17 00:00:00 2001
|
||
|
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
|
||
|
index 21bfdf9e7..ab5c6e92e 100644
|
||
|
--- a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
||
|
+++ b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
||
|
@@ -298,6 +298,11 @@ public final class CraftMagicNumbers implements UnsafeValues {
|
||
|
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
|
||
|
|
||
|
/**
|
||
|
--
|
||
|
2.24.1.windows.2
|
||
|
|