geforkt von Mirrors/Paper
23 Zeilen
1021 B
Diff
23 Zeilen
1021 B
Diff
From 0000000000000000000000000000000000000000 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 176d5bdc5bf048940ceb46dd0a69d9fb7d39821f..9c189cc0596301c16e84f7df39b983a4392583d2 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
|
@@ -429,6 +429,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
|
|
|
|
/**
|