From 03c4aa620efe7b1d45df2d851c8dc96bc1e40ee3 Mon Sep 17 00:00:00 2001 From: Jacob <55346310+Kathund@users.noreply.github.com> Date: Mon, 20 Oct 2025 06:50:27 +0000 Subject: [PATCH 1/4] Remove Hypixel Check on FlyBoost --- src/main/kotlin/org/polyfrost/polysprint/core/Utils.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/org/polyfrost/polysprint/core/Utils.kt b/src/main/kotlin/org/polyfrost/polysprint/core/Utils.kt index 280e81f..457c953 100644 --- a/src/main/kotlin/org/polyfrost/polysprint/core/Utils.kt +++ b/src/main/kotlin/org/polyfrost/polysprint/core/Utils.kt @@ -20,7 +20,6 @@ package org.polyfrost.polysprint.core import cc.polyfrost.oneconfig.libs.universal.UKeyboard import cc.polyfrost.oneconfig.libs.universal.UScreen -import cc.polyfrost.oneconfig.utils.hypixel.HypixelUtils import net.minecraft.client.settings.KeyBinding import org.lwjgl.input.Mouse import org.polyfrost.polysprint.PolySprint.gameSettings @@ -35,7 +34,7 @@ fun shouldSetSneak(keyBinding: KeyBinding): Boolean { } fun shouldFlyBoost(): Boolean { - return gameSettings.keyBindSprint.isKeyDown && PolySprintConfig.enabled && PolySprintConfig.toggleFlyBoost && player != null && player!!.capabilities.isFlying && player!!.capabilities.isCreativeMode && !HypixelUtils.INSTANCE.isHypixel + return gameSettings.keyBindSprint.isKeyDown && PolySprintConfig.enabled && PolySprintConfig.toggleFlyBoost && player != null && player!!.capabilities.isFlying && player!!.capabilities.isCreativeMode } fun checkKeyCode(keyCode: Int) = if (keyCode > 0) UKeyboard.isKeyDown(keyCode) else Mouse.isButtonDown( From f4518783a280a7cd7482d360aa62a3d7d1b23379 Mon Sep 17 00:00:00 2001 From: Jacob <55346310+Kathund@users.noreply.github.com> Date: Mon, 20 Oct 2025 07:07:12 +0000 Subject: [PATCH 2/4] feat: gh actions build script --- .github/workflows/gradle.yml | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..20f6b20 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,48 @@ +name: build + +on: + push: + branches: '*' + paths-ignore: + - 'README.md' + - 'LICENSE' + - '.gitignore' + pull_request: + branches: '*' + paths-ignore: + - 'README.md' + - 'LICENSE' + - '.gitignore' + workflow_dispatch: + +concurrency: + # Maximum of one running workflow per pull request source branch + # or branch and run number combination (cancels old run if action is rerun) + group: ${{ github.head_ref || format('{0}-{1}', github.ref, github.run_number) }} + cancel-in-progress: true + +jobs: + build: + name: "Build" + runs-on: "ubuntu-latest" + + steps: + - uses: actions/checkout@v2 + + - uses: gradle/wrapper-validation-action@v1 + + - uses: actions/setup-java@v2 + with: + distribution: "temurin" + java-version: "17" + + - uses: actions/cache@v2 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + - run: chmod +x ./gradlew + - run: ./gradlew --no-daemon build From a33ccebe1a0f974611cc712eda5806224569ea24 Mon Sep 17 00:00:00 2001 From: Jacob <55346310+Kathund@users.noreply.github.com> Date: Mon, 20 Oct 2025 07:11:01 +0000 Subject: [PATCH 3/4] fix: build script lol --- .github/workflows/gradle.yml | 48 +++++++++++++++++------------------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 20f6b20..987739e 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,48 +1,46 @@ -name: build +# Build Workflow + +name: Build with Gradle on: - push: - branches: '*' - paths-ignore: - - 'README.md' - - 'LICENSE' - - '.gitignore' pull_request: - branches: '*' - paths-ignore: - - 'README.md' - - 'LICENSE' - - '.gitignore' workflow_dispatch: + push: concurrency: - # Maximum of one running workflow per pull request source branch - # or branch and run number combination (cancels old run if action is rerun) group: ${{ github.head_ref || format('{0}-{1}', github.ref, github.run_number) }} cancel-in-progress: true jobs: build: - name: "Build" - runs-on: "ubuntu-latest" + name: Build - steps: - - uses: actions/checkout@v2 + runs-on: ubuntu-latest - - uses: gradle/wrapper-validation-action@v1 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 10 - - uses: actions/setup-java@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v4 with: - distribution: "temurin" - java-version: "17" + java-version: 17 + distribution: temurin - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: | ~/.gradle/caches ~/.gradle/wrapper + **/loom-cache + **/prebundled-jars key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} restore-keys: | ${{ runner.os }}-gradle- - - run: chmod +x ./gradlew - - run: ./gradlew --no-daemon build + - name: Chmod Gradle + run: chmod +x ./gradlew + + - name: Build + run: ./gradlew build --no-daemon From 16ba205a752efb308ec7412e577930224f2431f3 Mon Sep 17 00:00:00 2001 From: Jacob <55346310+Kathund@users.noreply.github.com> Date: Thu, 23 Oct 2025 16:30:42 +0000 Subject: [PATCH 4/4] bump version --- gradle.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index bc7736f..59b0c9b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ mod_name = PolySprint mod_id = polysprint -mod_version = 1.0.1 +mod_version = 1.0.2 mod_archives_name=PolySprint # Gradle Configuration -- DO NOT TOUCH THESE VALUES. @@ -9,4 +9,4 @@ org.gradle.daemon=true org.gradle.parallel=true org.gradle.configureoncommand=true org.gradle.parallel.threads=4 -org.gradle.jvmargs=-Xmx2G \ No newline at end of file +org.gradle.jvmargs=-Xmx2G