mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Undeprecate Material#isLegacy (#7679)
This commit is contained in:
parent
a096540d94
commit
98451ad73f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user