2019-12-23 04:59:27 +01:00
|
|
|
From 009a60a50466d5a0e18d54a5410a9a222e392d0b Mon Sep 17 00:00:00 2001
|
2019-12-15 19:28:44 +01: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
|
2019-12-23 04:59:27 +01:00
|
|
|
index 40f7b433a..ab3ebc79e 100644
|
2019-12-15 19:28:44 +01:00
|
|
|
--- 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
|
|
|
|
|
|
|
|
/**
|
|
|
|
--
|
2019-12-16 03:47:23 +01:00
|
|
|
2.24.1
|
2019-12-15 19:28:44 +01:00
|
|
|
|