Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 12:30:06 +01:00
6e7dc3f81d
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
CraftBukkit Changes:
52fd29c0d
SPIGOT-6033: Bukkit.getUnsafe().getMaterial() won't match renamed block materials
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 8b45f510bf24bb1f9503cb4dcef0e21b3634400c..d288d5fadbdb7cd4e5a42f94cdba6f825b2ed877 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
|
@@ -328,6 +328,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
|
|
|
|
/**
|