Skip to content

Commit 19df7d4

Browse files
authored
Merge pull request #10 from Kathund/fix/flyboost
Remove Hypixel Check on FlyBoost
2 parents cb024e0 + 16ba205 commit 19df7d4

3 files changed

Lines changed: 49 additions & 4 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Build Workflow
2+
3+
name: Build with Gradle
4+
5+
on:
6+
pull_request:
7+
workflow_dispatch:
8+
push:
9+
10+
concurrency:
11+
group: ${{ github.head_ref || format('{0}-{1}', github.ref, github.run_number) }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
build:
16+
name: Build
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 10
25+
26+
- name: Set up JDK 17
27+
uses: actions/setup-java@v4
28+
with:
29+
java-version: 17
30+
distribution: temurin
31+
32+
- uses: actions/cache@v4
33+
with:
34+
path: |
35+
~/.gradle/caches
36+
~/.gradle/wrapper
37+
**/loom-cache
38+
**/prebundled-jars
39+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
40+
restore-keys: |
41+
${{ runner.os }}-gradle-
42+
- name: Chmod Gradle
43+
run: chmod +x ./gradlew
44+
45+
- name: Build
46+
run: ./gradlew build --no-daemon

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mod_name = PolySprint
22
mod_id = polysprint
3-
mod_version = 1.0.1
3+
mod_version = 1.0.2
44
mod_archives_name=PolySprint
55

66
# Gradle Configuration -- DO NOT TOUCH THESE VALUES.
@@ -9,4 +9,4 @@ org.gradle.daemon=true
99
org.gradle.parallel=true
1010
org.gradle.configureoncommand=true
1111
org.gradle.parallel.threads=4
12-
org.gradle.jvmargs=-Xmx2G
12+
org.gradle.jvmargs=-Xmx2G

src/main/kotlin/org/polyfrost/polysprint/core/Utils.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ package org.polyfrost.polysprint.core
2020

2121
import cc.polyfrost.oneconfig.libs.universal.UKeyboard
2222
import cc.polyfrost.oneconfig.libs.universal.UScreen
23-
import cc.polyfrost.oneconfig.utils.hypixel.HypixelUtils
2423
import net.minecraft.client.settings.KeyBinding
2524
import org.lwjgl.input.Mouse
2625
import org.polyfrost.polysprint.PolySprint.gameSettings
@@ -35,7 +34,7 @@ fun shouldSetSneak(keyBinding: KeyBinding): Boolean {
3534
}
3635

3736
fun shouldFlyBoost(): Boolean {
38-
return gameSettings.keyBindSprint.isKeyDown && PolySprintConfig.enabled && PolySprintConfig.toggleFlyBoost && player != null && player!!.capabilities.isFlying && player!!.capabilities.isCreativeMode && !HypixelUtils.INSTANCE.isHypixel
37+
return gameSettings.keyBindSprint.isKeyDown && PolySprintConfig.enabled && PolySprintConfig.toggleFlyBoost && player != null && player!!.capabilities.isFlying && player!!.capabilities.isCreativeMode
3938
}
4039

4140
fun checkKeyCode(keyCode: Int) = if (keyCode > 0) UKeyboard.isKeyDown(keyCode) else Mouse.isButtonDown(

0 commit comments

Comments
 (0)