diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-07-02 07:12:29 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-07-02 07:12:29 +0700 |
commit | 0979e8243cd18195508a93bdcb3319fdf22bcf70 (patch) | |
tree | 89b0b82b991a0d31537f663236fdad22f2a34c2f /versions/src/main/java/cc/polyfrost/oneconfig/utils | |
parent | bdb778c8c1387c802927625cdf5192d99295ca4e (diff) | |
download | OneConfig-0979e8243cd18195508a93bdcb3319fdf22bcf70.tar.gz OneConfig-0979e8243cd18195508a93bdcb3319fdf22bcf70.tar.bz2 OneConfig-0979e8243cd18195508a93bdcb3319fdf22bcf70.zip |
ez 1.12 support
Diffstat (limited to 'versions/src/main/java/cc/polyfrost/oneconfig/utils')
-rw-r--r-- | versions/src/main/java/cc/polyfrost/oneconfig/utils/commands/PlatformCommandManagerImpl.java | 16 |
1 files changed, 14 insertions, 2 deletions
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<String> addTabCompletionOptions(ICommandSender sender, String[] args, BlockPos pos) { + public List<String> + //#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); } }); |