mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-21 23:11:56 +01:00
Update CustomTimingsHandler Nag Message (#11923)
This commit is contained in:
parent
55f3f280cb
commit
08fc33ca03
@ -48,7 +48,7 @@ public final class CustomTimingsHandler {
|
|||||||
public CustomTimingsHandler(@NotNull String name) {
|
public CustomTimingsHandler(@NotNull String name) {
|
||||||
Timing timing;
|
Timing timing;
|
||||||
|
|
||||||
new AuthorNagException("Deprecated use of CustomTimingsHandler. Please Switch to Timings.of ASAP").printStackTrace();
|
new AuthorNagException("Deprecated use of CustomTimingsHandler. Timings has been removed.").printStackTrace();
|
||||||
try {
|
try {
|
||||||
final Method ofSafe = TimingsManager.class.getDeclaredMethod("getHandler", String.class, String.class, Timing.class);
|
final Method ofSafe = TimingsManager.class.getDeclaredMethod("getHandler", String.class, String.class, Timing.class);
|
||||||
ofSafe.setAccessible(true);
|
ofSafe.setAccessible(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user