mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 19:55:52 -07:00
Explicitly deprecate all MaterialData subclasses
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -132,8 +132,7 @@ public class AnnotationTest {
|
||||
}
|
||||
|
||||
if (isSubclassOf(clazz, "org/bukkit/material/MaterialData", allClasses)) {
|
||||
// MaterialData is deprecated and all of its subclasses are excluded
|
||||
return false;
|
||||
throw new AssertionError("Subclass of MaterialData must be deprecated: " + clazz.name);
|
||||
}
|
||||
|
||||
if (isSubclassOf(clazz, "java/lang/Exception", allClasses)
|
||||
|
Reference in New Issue
Block a user