Replaced getDeclaredConstructor with constructors

This commit is contained in:
Pazaz 2022-04-28 02:41:20 -04:00
parent fd3572f709
commit 37883b9f35
7 changed files with 7 additions and 19 deletions

View file

@ -12,7 +12,7 @@ public abstract class MouseWheel {
@OriginalMember(owner = "client!dh", name = "a", descriptor = "(B)Lclient!uc;")
public static MouseWheel create() {
try {
return (MouseWheel) Class.forName("rt4.JavaMouseWheel").getDeclaredConstructor().newInstance();
return new JavaMouseWheel();
} catch (@Pc(15) Throwable local15) {
return null;
}