Zoom Fix?

This commit is contained in:
kirillsaint 2023-09-06 22:47:11 +06:00
parent c2f7db5a6e
commit bc4cad3df1

View File

@ -52,6 +52,9 @@ public class GameSettingsMixin implements GameSettingsExt {
*/ */
@Overwrite @Overwrite
public static boolean isKeyDown(KeyBinding key) { public static boolean isKeyDown(KeyBinding key) {
if(key.getKeyDescription().equalsIgnoreCase("of.key.zoom") && Client.getInstance().getModInstances().getZoomMod().isActive()) {
return false;
}
int keyCode = key.getKeyCode(); int keyCode = key.getKeyCode();
if (keyCode != 0 && keyCode < 256) { if (keyCode != 0 && keyCode < 256) {
return keyCode < 0 ? Mouse.isButtonDown(keyCode + 100) : Keyboard.isKeyDown(keyCode); return keyCode < 0 ? Mouse.isButtonDown(keyCode + 100) : Keyboard.isKeyDown(keyCode);