Skip to content

Commit

Permalink
Merge pull request #361 from Polyfrost/develop-v0
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest authored Sep 23, 2024
2 parents f9a98fe + 6a27eed commit b8ced4d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ public class Preferences extends InternalConfig {
max = 100f
)
public static float trackerResponseDuration = 60;

@Switch(
name = "Auto Update"
)
public static boolean autoUpdate = true;

@Dropdown(
name = "Release Channel",
Expand Down Expand Up @@ -219,6 +224,10 @@ public Preferences() {
initialize();
addListener("enableBlur", () -> BlurHandler.INSTANCE.reloadBlur(Platform.getGuiPlatform().getCurrentScreen()));
registerKeyBind(oneConfigKeyBind, () -> new TickDelay(() -> Platform.getGuiPlatform().setCurrentScreen(OneConfigGui.create()), 1));
addListener("autoUpdate", () -> {
OneConfigConfig.autoUpdate = autoUpdate;
OneConfigConfig.getInstance().save();
});
addListener("updateChannel", () -> {
OneConfigConfig.updateChannel = updateChannel;
OneConfigConfig.getInstance().save();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private void onTick(TickEvent event) {
}

this.tick++;
if (this.tick == 40 || this.tick % 520 == 0) {
if (this.tick == 40 || this.tick % 1300 == 0) {
sendLocraw(false);
}
}
Expand Down

0 comments on commit b8ced4d

Please sign in to comment.