aboutsummaryrefslogtreecommitdiff
path: root/versions/src/main/java/cc/polyfrost/oneconfig/utils
diff options
context:
space:
mode:
authornextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-07-03 12:35:21 +0100
committernextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-07-03 12:35:21 +0100
commit99d4a88df013c03aa3e82bc75ec3e6ece65b9df9 (patch)
tree610eddeed5f0f69c0cbef86106ff0bbc8d9387ea /versions/src/main/java/cc/polyfrost/oneconfig/utils
parent52d921c208d87b71665ff78cea88b37a44a29cae (diff)
downloadOneConfig-99d4a88df013c03aa3e82bc75ec3e6ece65b9df9.tar.gz
OneConfig-99d4a88df013c03aa3e82bc75ec3e6ece65b9df9.tar.bz2
OneConfig-99d4a88df013c03aa3e82bc75ec3e6ece65b9df9.zip
changes to ESC behavior
Diffstat (limited to 'versions/src/main/java/cc/polyfrost/oneconfig/utils')
-rw-r--r--versions/src/main/java/cc/polyfrost/oneconfig/utils/commands/PlatformCommandManagerImpl.java3
1 files changed, 3 insertions, 0 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 76dab84..c38fbff 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
@@ -27,6 +27,7 @@ public class PlatformCommandManagerImpl implements PlatformCommandManager {
@Override
public void createCommand(CommandManager.InternalCommand root, Command annotation) {
+ //#if MC<=11202
ClientCommandHandler.instance.registerCommand(new CommandBase() {
@Override
public String getCommandName() {
@@ -65,6 +66,8 @@ public class PlatformCommandManagerImpl implements PlatformCommandManager {
return handleTabCompletion(root, annotation, args);
}
});
+ //#else
+ //#endif
}
private void handleCommand(CommandManager.InternalCommand root, Command annotation, String[] args) {