Skip to content

Commit

Permalink
fix gui not working 1.20.4 and 1.20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
alvindimas05 committed Aug 7, 2024
1 parent 3feb93c commit b4b302b
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 81 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,15 @@ jobs:
server-id: lagassist
settings-path: ${{ github.workspace }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
- name: Build with Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5

- name: Build with Gradle 1.20.4
run: MC_VERSION=1.20.4 ./gradlew build
- name: Build with Gradle 1.20.6
run: MC_VERSION=1.20.6 ./gradlew build
- name: Build with Gradle Latest
run: ./gradlew build

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/modules/lagassist.main.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/modules/org.alvindimas05.lagassist.lagassist.main.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@ repositories {
maven("https://repo.maven.apache.org/maven2/")
}


var minecraftVersion = "1.21"

task<Exec>("minecraftVersion") {
minecraftVersion = System.getenv("MC_VERSION") ?: "1.21"
}

group = "org.alvindimas05.lagassist"
version = "2.30.1"
version = "2.31-$minecraftVersion"
description = "LagAssist"

java {
Expand All @@ -20,8 +27,9 @@ java {
}
}


dependencies {
compileOnly("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT")
compileOnly("io.papermc.paper:paper-api:$minecraftVersion-R0.1-SNAPSHOT")
compileOnly("net.milkbowl.vault:VaultAPI:1.7")

implementation("io.netty:netty-all:4.1.111.Final")
Expand All @@ -32,4 +40,4 @@ dependencies {

tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
}
2 changes: 1 addition & 1 deletion src/main/java/org/alvindimas05/lagassist/gui/DataGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public static void setShine(ItemStack s, boolean shining) {
ItemMeta smeta = s.getItemMeta();

if (shining) {
smeta.addEnchant(Enchantment.UNBREAKING, 1, true);
smeta.addEnchant(Enchantment.MENDING, 1, true);
smeta.addItemFlags(ItemFlag.HIDE_ENCHANTS, ItemFlag.HIDE_ATTRIBUTES);
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ public void run() {
cs.sendMessage(" §2✸ §fCPU Score (SINGLE): §e" + br.getStringifiedSth());
cs.sendMessage(" §2✸ §fCPU Score (MULTI): §e" + br.getStringifiedMth());
} else {
cs.sendMessage(" §cThere was an error getting the full benchmark results.");
cs.sendMessage(" §eBenchmark feature coming soon!");
// cs.sendMessage(" §cThere was an error getting the full benchmark results.");
}
cs.sendMessage("");
cs.sendMessage(" §2✸ §fDownload Speed: §e" + MIBDL + " Mib/s (" + MBDL + "MB/s)");
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: LagAssist
authors: [Stefatorus, EntryRise, alvindimas05]
version: 2.30.0
version: 2.31
api-version: 1.13
description: LagAssist is an advanced anti-lag solution that allows server owners find and remove lag using multiple advanced and efficient methods.
main: org.alvindimas05.lagassist.Main
Expand Down

0 comments on commit b4b302b

Please sign in to comment.