Clean up method a little, don't output setNoGravity to parsed disguise

This commit is contained in:
libraryaddict 2020-05-17 22:19:50 +12:00
parent 6897e00c6f
commit 6d4d12e0fa
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -151,7 +151,15 @@ public class DisguiseParser {
stringBuilder.append(" ").append(m.getName()).append(" ").append(type.getName());
}
} else {
continue;
}
// Also for this method. You can't override it, so why output it
if (m.getName().equals("setNoGravity")) {
continue;
}
Entry<Method, Object> entry = defaultWatcherValues.get(m);
if (entry == null) {
@ -207,7 +215,6 @@ public class DisguiseParser {
stringBuilder.append(" ").append(valueString);
}
}
return stringBuilder.toString();
}