Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

Commit

Permalink
hopefully fixed rpc bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kopamed committed Sep 1, 2021
1 parent 86d9aad commit 74ab5f0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
Binary file modified build/libs/[1.8.9] BetterKeystrokes V-1.1.0-sources.jar
Binary file not shown.
Binary file modified build/libs/[1.8.9] BetterKeystrokes V-1.1.0.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@

public class DuelsStats extends Module {
public static ModuleSettingSlider value;
public static ModuleSettingSlider threatLeaveMode;
public static ModuleDesc moduleDesc;
public static ModuleSettingTick a;
public static ModuleSettingTick autoLeave;
public static ModuleSettingTick threatLevel;
public static String nk = "";
private String ign = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@
public class DiscordRPCModule extends Module {
public static final DiscordRPCManager rpc = new DiscordRPCManager();
public static ModuleSettingSlider rpcMode;
public static ModuleDesc rpcModeDesc;
public static ModuleDesc rpcModeDesc, unsupportedOS;


public DiscordRPCModule() {
super("DiscordRPC", category.other);
if (Ravenbplus.osName.contains("Mac") || Ravenbplus.osArch.contains("arm")) {
this.registerSetting(unsupportedOS = new ModuleDesc("Unsupported OS!"));
}
this.registerSetting(rpcMode = new ModuleSettingSlider("Mode", 4.0D, 1.0D, 4.0D, 1.0D));
this.registerSetting(rpcModeDesc = new ModuleDesc("Raven b+"));
}
Expand Down Expand Up @@ -60,6 +63,7 @@ public void onDisable() {

private int lastRPC;
public void guiUpdate() {
if (Ravenbplus.osName.contains("Mac") || Ravenbplus.osArch.contains("arm")) return;
if (lastRPC != (int) rpcMode.getInput()) { // prevent lags
lastRPC = (int) rpcMode.getInput();

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/keystrokes/branch
Original file line number Diff line number Diff line change
@@ -1 +1 @@
beta-25
beta-26

0 comments on commit 74ab5f0

Please sign in to comment.