Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-17 12:00:07 +01:00
79710332e3
--- work/CraftBukkit Submodule work/CraftBukkit 29737ccb..efd6cf55: > Only load legacy support data if something uses it
26 Zeilen
971 B
Diff
26 Zeilen
971 B
Diff
From f7e36c12bf727ec05cf8c0d160da894024f7176d 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 919892106..6a6e4fe48 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
|
@@ -300,6 +300,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.25.0
|
|
|