2020-05-06 11:48:49 +02:00
|
|
|
From 0000000000000000000000000000000000000000 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
|
2020-09-14 11:57:06 +02:00
|
|
|
index 185a0600e655f0ae85d22c438e9beb398cb12896..c2650f3cc597620b1cbddce3f60614936e9bb62c 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
|
2020-09-14 11:57:06 +02:00
|
|
|
@@ -348,6 +348,11 @@ public final class CraftMagicNumbers implements UnsafeValues {
|
2019-12-15 19:28:44 +01: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
|
|
|
|
|
|
|
|
/**
|