55b3a09dde
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: d0800d0c Update checkstyle e4e4bf70 Remove package-info from tests, breaks some IDEs d6651bb0 No longer necessary to synchronize sync events CraftBukkit Changes:e82b5477
SPIGOT-5556: Some biome methods use incorrect positions544ccdc5
Update checkstyle512ff7a5
Print legacy load reason in debug modedf371c1b
SPIGOT-5554: Clear error message when BossBar is used for not fully joined players18168500
Update scriptus6bbb4e73
Clean up CraftBlockData.toStringb1e96bd5
SPIGOT-5551: BlockState.setData fails when used by legacy plugin Spigot Changes: b9baf717 Add space before ocean seed output 13394884 Rebuild patches
26 Zeilen
971 B
Diff
26 Zeilen
971 B
Diff
From 32b8a8aae60c0ee6e0e1fba24756de333d726dc8 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 b1e1b59d4..770375ed4 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
|
@@ -308,6 +308,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
|
|
|