mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 08:51:32 +01:00
Zoom Fix?
This commit is contained in:
parent
c2f7db5a6e
commit
bc4cad3df1
@ -52,6 +52,9 @@ public class GameSettingsMixin implements GameSettingsExt {
|
||||
*/
|
||||
@Overwrite
|
||||
public static boolean isKeyDown(KeyBinding key) {
|
||||
if(key.getKeyDescription().equalsIgnoreCase("of.key.zoom") && Client.getInstance().getModInstances().getZoomMod().isActive()) {
|
||||
return false;
|
||||
}
|
||||
int keyCode = key.getKeyCode();
|
||||
if (keyCode != 0 && keyCode < 256) {
|
||||
return keyCode < 0 ? Mouse.isButtonDown(keyCode + 100) : Keyboard.isKeyDown(keyCode);
|
||||
|
Loading…
Reference in New Issue
Block a user