mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-12 15:07:22 +01:00
Fix people being able to crash with deprecated particle types
This commit is contained in:
parent
69e1d52785
commit
1375095638
@ -113,7 +113,8 @@ public class ParamInfoParticle extends ParamInfoEnum {
|
||||
for (Field field : ParticleTypes.class.getFields()) {
|
||||
int mods = field.getModifiers();
|
||||
|
||||
if (!Modifier.isFinal(mods) || !Modifier.isPublic(mods) || !Modifier.isStatic(mods)) {
|
||||
if (!Modifier.isFinal(mods) || !Modifier.isPublic(mods) || !Modifier.isStatic(mods) ||
|
||||
field.isAnnotationPresent(Deprecated.class)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user