From 98451ad73f79fba53fb568e3c81e40ea0138fdaf Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Thu, 31 Mar 2022 09:13:19 -0700 Subject: [PATCH] Undeprecate Material#isLegacy (#7679) --- .../api/Fix-Spigot-annotation-mistakes.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/patches/api/Fix-Spigot-annotation-mistakes.patch b/patches/api/Fix-Spigot-annotation-mistakes.patch index 39e7361a37..f4173495a2 100644 --- a/patches/api/Fix-Spigot-annotation-mistakes.patch +++ b/patches/api/Fix-Spigot-annotation-mistakes.patch @@ -61,6 +61,24 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 public World getWorld() { if (this.world == null) { return null; +diff --git a/src/main/java/org/bukkit/Material.java b/src/main/java/org/bukkit/Material.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/org/bukkit/Material.java ++++ b/src/main/java/org/bukkit/Material.java +@@ -0,0 +0,0 @@ public enum Material implements Keyed { + } + + /** +- * Do not use for any reason. ++ * Checks if this constant is a legacy material. + * + * @return legacy status + */ +- @Deprecated ++ // @Deprecated // Paper - this is useful, don't deprecate + public boolean isLegacy() { + return legacy; + } diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/org/bukkit/Server.java