Skip to content

Commit 61f7feb

Browse files
committed
🐛 fix #70
1 parent b953674 commit 61f7feb

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

forge/origin/src/main/java/io/github/kituin/chatimage/ChatImage.java

+5-9
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static class ClientModEvents {
7777
CONFIG = ChatImageConfig.loadConfig();
7878
ChatImageCodeInstance.CLIENT_ADAPTER = new ChatImageClientAdapter();
7979
}
80-
// IF > forge-1.18.2
80+
// IF >= forge-1.19
8181
// @SubscribeEvent
8282
// public static void onKeyBindRegister(RegisterKeyMappingsEvent event) {
8383
// KeyBindings.init(event);
@@ -88,9 +88,11 @@ public static class ClientModEvents {
8888
@SubscribeEvent
8989
public static void onClientSetup(FMLClientSetupEvent event) {
9090
LOGGER.info("[ChatImage]Client start");
91+
// IF >= forge-1.16 || < forge-1.19
92+
// KeyBindings.init();
93+
// LOGGER.info("KeyBindings Register");
94+
// END IF
9195
// IF forge-1.16.5
92-
// KeyBindings.init();
93-
// LOGGER.info("KeyBindings Register");
9496
// ModLoadingContext.get().registerExtensionPoint(ExtensionPoint.CONFIGGUIFACTORY,
9597
// () -> (mc, screen) -> new ConfigScreen(screen));
9698
// ELSE
@@ -135,12 +137,6 @@ public static void onKeyInput(#InputEvent.Key# event) {
135137
}
136138

137139
public static void onClientStaring(RegisterCommandsEvent event) {
138-
139140
}
140-
141141
}
142-
143-
144-
145-
146142
}

0 commit comments

Comments
 (0)