From f41bcc23d5f319640942d92fde70ba3ce82fb3cb Mon Sep 17 00:00:00 2001 From: WakelessSloth56 Date: Tue, 29 Mar 2022 17:43:25 +0800 Subject: [PATCH] refactor(command): fix method name ambiguity --- .../arnicalib/client/command/AHClientCommands.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/auioc/mods/arnicalib/client/command/AHClientCommands.java b/src/main/java/org/auioc/mods/arnicalib/client/command/AHClientCommands.java index e681efd0..2843881d 100644 --- a/src/main/java/org/auioc/mods/arnicalib/client/command/AHClientCommands.java +++ b/src/main/java/org/auioc/mods/arnicalib/client/command/AHClientCommands.java @@ -12,9 +12,14 @@ public final class AHClientCommands { public static void register(CommandDispatcher dispatcher) { - getRootNode(dispatcher); + getAHNode(dispatcher); } + /** + * @since 5.0.2 + * @deprecated Use {@link #getAHNode} instead + */ + @Deprecated(since = "5.1.3") public static CommandNode getRootNode(CommandDispatcher dispatcher) { CommandNode node = dispatcher.findNode(List.of("ah")); if (node == null) { @@ -23,4 +28,8 @@ public static CommandNode getRootNode(CommandDispatcher getAHNode(CommandDispatcher dispatcher) { + return getRootNode(dispatcher); + } + }