mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 06:51:32 +01:00
fix?
This commit is contained in:
parent
89a70cb7ca
commit
cc64739dae
@ -44,7 +44,7 @@ public class QuickplayModeGui extends SilentScreen {
|
|||||||
this.silentInputs.clear();
|
this.silentInputs.clear();
|
||||||
this.buttonList.add(new IconButton(0, this.width - 14 - 3, 3, 14, 14, 8, 8, new ResourceLocation("silentclient/icons/exit.png")));
|
this.buttonList.add(new IconButton(0, this.width - 14 - 3, 3, 14, 14, 8, 8, new ResourceLocation("silentclient/icons/exit.png")));
|
||||||
for(QuickPlayMod.QuickplayCommandType quickplayMode : quickplayMode.modes) {
|
for(QuickPlayMod.QuickplayCommandType quickplayMode : quickplayMode.modes) {
|
||||||
this.silentInputs.add(new Input(quickplayMode.name, Client.getInstance().getSettingsManager().getSettingByClass(QuickPlayMod.class, String.format("Quickplay Mode|%s|%s", Server.isRuHypixel() ? "RuHypixel" : "Hypixel", quickplayMode.command)).getKeybind()));
|
this.silentInputs.add(new Input(quickplayMode.name, Client.getInstance().getSettingsManager().getSettingByClass(QuickPlayMod.class, String.format("Quickplay Mode&%s&%s", Server.isRuHypixel() ? "RuHypixel" : "Hypixel", quickplayMode.command)).getKeybind()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,7 +180,7 @@ public class QuickplayModeGui extends SilentScreen {
|
|||||||
for(QuickPlayMod.QuickplayCommandType quickplayMode : quickplayMode.modes) {
|
for(QuickPlayMod.QuickplayCommandType quickplayMode : quickplayMode.modes) {
|
||||||
if(silentInputs.get(inputIndex).isFocused()) {
|
if(silentInputs.get(inputIndex).isFocused()) {
|
||||||
this.silentInputs.get(inputIndex).onKeyTyped(typedChar, keyCode);
|
this.silentInputs.get(inputIndex).onKeyTyped(typedChar, keyCode);
|
||||||
Client.getInstance().getSettingsManager().getSettingByClass(QuickPlayMod.class, String.format("Quickplay Mode|%s|%s", Server.isRuHypixel() ? "RuHypixel" : "Hypixel", quickplayMode.command)).setKeybind(this.silentInputs.get(inputIndex).getKey());
|
Client.getInstance().getSettingsManager().getSettingByClass(QuickPlayMod.class, String.format("Quickplay Mode&%s&%s", Server.isRuHypixel() ? "RuHypixel" : "Hypixel", quickplayMode.command)).setKeybind(this.silentInputs.get(inputIndex).getKey());
|
||||||
if(keyCode == Keyboard.KEY_ESCAPE) {
|
if(keyCode == Keyboard.KEY_ESCAPE) {
|
||||||
neededKeyCheck = false;
|
neededKeyCheck = false;
|
||||||
break;
|
break;
|
||||||
|
@ -54,7 +54,7 @@ public class QuickPlayMod extends Mod {
|
|||||||
Client.logger.info(String.format("Initialising Hypixel Quickplay Mode (%s)", mode.name));
|
Client.logger.info(String.format("Initialising Hypixel Quickplay Mode (%s)", mode.name));
|
||||||
mode.modes.forEach((command) -> {
|
mode.modes.forEach((command) -> {
|
||||||
Client.logger.info(String.format("Initialising Hypixel Quickplay Mode (%s) Command (%s)", mode.name, command.name));
|
Client.logger.info(String.format("Initialising Hypixel Quickplay Mode (%s) Command (%s)", mode.name, command.name));
|
||||||
this.addKeybindSetting("Quickplay Mode|Hypixel|"+command.command, this, -1);
|
this.addKeybindSetting("Quickplay Mode&Hypixel&"+command.command, this, -1);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch (Exception err) {
|
} catch (Exception err) {
|
||||||
@ -80,7 +80,7 @@ public class QuickPlayMod extends Mod {
|
|||||||
Client.logger.info(String.format("Initialising RuHypixel Quickplay Mode (%s)", mode.name));
|
Client.logger.info(String.format("Initialising RuHypixel Quickplay Mode (%s)", mode.name));
|
||||||
mode.modes.forEach((command) -> {
|
mode.modes.forEach((command) -> {
|
||||||
Client.logger.info(String.format("Initialising RuHypixel Quickplay Mode (%s) Command (%s)", mode.name, command.name));
|
Client.logger.info(String.format("Initialising RuHypixel Quickplay Mode (%s) Command (%s)", mode.name, command.name));
|
||||||
this.addKeybindSetting("Quickplay Mode|RuHypixel|"+command.command, this, -1);
|
this.addKeybindSetting("Quickplay Mode&RuHypixel&"+command.command, this, -1);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch (Exception err) {
|
} catch (Exception err) {
|
||||||
@ -120,7 +120,7 @@ public class QuickPlayMod extends Mod {
|
|||||||
if(sending) {
|
if(sending) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
String[] args = setting.getName().split("|");
|
String[] args = setting.getName().split("&");
|
||||||
if(((args[1].equals("Hypixel") && Server.isHypixel()) || (args[1].equals("RuHypixel") && Server.isRuHypixel())) && setting.isKeyDown()) {
|
if(((args[1].equals("Hypixel") && Server.isHypixel()) || (args[1].equals("RuHypixel") && Server.isRuHypixel())) && setting.isKeyDown()) {
|
||||||
runCommand(args[2]);
|
runCommand(args[2]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user