Update KeyBindManager.java

This commit is contained in:
kirillsaint 2023-08-05 02:18:10 +06:00 committed by GitHub
parent 850b968e06
commit 11ba2942f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ public class KeyBindManager {
if(SilentClientTweaker.hasOptifine) { if(SilentClientTweaker.hasOptifine) {
try { try {
this.unregisterKeybind(gameSettings, (KeyBinding) GameSettings.class.getField("ofKeyBindZoom").get(Minecraft.getMinecraft().gameSettings)); this.unregisterKeybind(gameSettings, (KeyBinding) GameSettings.class.getField("ofKeyBindZoom").get(Minecraft.getMinecraft().gameSettings));
} catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException | SecurityException e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
} }