mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 06:51:32 +01:00
Update GameSettingsMixin.java
This commit is contained in:
parent
bc4cad3df1
commit
4a903509a8
@ -7,6 +7,7 @@ import net.minecraft.client.settings.KeyBinding;
|
||||
import net.silentclient.client.Client;
|
||||
import net.silentclient.client.keybinds.KeyBindManager;
|
||||
import net.silentclient.client.mixin.ducks.GameSettingsExt;
|
||||
import net.silentclient.client.mods.player.ZoomMod;
|
||||
import org.lwjgl.input.Keyboard;
|
||||
import org.lwjgl.input.Mouse;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
@ -52,7 +53,7 @@ public class GameSettingsMixin implements GameSettingsExt {
|
||||
*/
|
||||
@Overwrite
|
||||
public static boolean isKeyDown(KeyBinding key) {
|
||||
if(key.getKeyDescription().equalsIgnoreCase("of.key.zoom") && Client.getInstance().getModInstances().getZoomMod().isActive()) {
|
||||
if(Client.getInstance().getModInstances().getZoomMod().isEnabled() && key.getKeyDescription().equalsIgnoreCase("of.key.zoom") && key.getKeyCode() == Client.getInstance().getSettingsManager().getSettingByClass(ZoomMod.class, "Keybind").getKeybind()) {
|
||||
return false;
|
||||
}
|
||||
int keyCode = key.getKeyCode();
|
||||
|
Loading…
Reference in New Issue
Block a user