From 0979e8243cd18195508a93bdcb3319fdf22bcf70 Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Sat, 2 Jul 2022 07:12:29 +0700 Subject: ez 1.12 support --- .../utils/commands/PlatformCommandManagerImpl.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'versions/src/main/java/cc/polyfrost/oneconfig/utils/commands') diff --git a/versions/src/main/java/cc/polyfrost/oneconfig/utils/commands/PlatformCommandManagerImpl.java b/versions/src/main/java/cc/polyfrost/oneconfig/utils/commands/PlatformCommandManagerImpl.java index 8b6edcc..76dab84 100644 --- a/versions/src/main/java/cc/polyfrost/oneconfig/utils/commands/PlatformCommandManagerImpl.java +++ b/versions/src/main/java/cc/polyfrost/oneconfig/utils/commands/PlatformCommandManagerImpl.java @@ -39,7 +39,13 @@ public class PlatformCommandManagerImpl implements PlatformCommandManager { } @Override - public void processCommand(ICommandSender sender, String[] args) { + public void + //#if MC<=10809 + processCommand(ICommandSender sender, String[] args) + //#else + //$$ execute(net.minecraft.server.MinecraftServer server, ICommandSender sender, String[] args) + //#endif + { handleCommand(root, annotation, args); } @@ -49,7 +55,13 @@ public class PlatformCommandManagerImpl implements PlatformCommandManager { } @Override - public List addTabCompletionOptions(ICommandSender sender, String[] args, BlockPos pos) { + public List + //#if MC<=10809 + addTabCompletionOptions(ICommandSender sender, String[] args, BlockPos pos) + //#else + //$$ getTabCompletions(net.minecraft.server.MinecraftServer server, ICommandSender sender, String[] args, BlockPos targetPos) + //#endif + { return handleTabCompletion(root, annotation, args); } }); -- cgit