mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-17 08:25:14 -06:00
Replaced getDeclaredConstructor with constructors
This commit is contained in:
parent
fd3572f709
commit
37883b9f35
7 changed files with 7 additions and 19 deletions
|
|
@ -11,7 +11,7 @@ public abstract class Timer {
|
|||
@OriginalMember(owner = "client!fi", name = "a", descriptor = "(B)Lclient!s;")
|
||||
public static Timer create() {
|
||||
try {
|
||||
return (Timer) Class.forName("rt4.NanoTimer").getDeclaredConstructor().newInstance();
|
||||
return new NanoTimer();
|
||||
} catch (@Pc(15) Throwable ex) {
|
||||
return new MillisTimer();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue