Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 1.20.3/4 support #1

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ repositories {
}

dependencies {
implementation(project(path = ":v1_20_3", configuration = "reobf"))
implementation(project(path = ":v1_20", configuration = "reobf"))
implementation(project(path = ":v1_19", configuration = "reobf"))
implementation(project(path = ":v1_19_3", configuration = "reobf"))
Expand Down
4 changes: 2 additions & 2 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ repositories {

dependencies {
compileOnly("org.spigotmc:spigot-api:1.18.1-R0.1-SNAPSHOT")
compileOnly("com.github.oraxen:oraxen:1.159.0")
compileOnly("com.github.oraxen:oraxen:1.168.0")
compileOnly("com.github.LoneDev6:api-itemsadder:3.0.0")
compileOnly("org.xerial:sqlite-jdbc:3.39.2.0")
compileOnly("com.sk89q.worldedit:worldedit-core:7.2.14-SNAPSHOT")
Expand All @@ -51,6 +51,6 @@ dependencies {
implementation("com.zaxxer:HikariCP:3.3.0")
implementation("org.bstats:bstats-bukkit:3.0.0")
implementation(platform("com.intellectualsites.bom:bom-1.18.x:1.19"))
implementation("com.github.retrooper.packetevents:spigot:2.0.2")
implementation("com.github.retrooper.packetevents:spigot:2.2.0")
implementation("io.github.fisher2911.FisherLib:common:1.0.3-beta")
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ public void onLoad() {
} else if (version.contains("1.19")) {
this.createFeatureHandler("v1_19");
}
if (version.contains("1.20")) {
if (version.contains("1.20.4") || version.contains("1.20.3")) {
this.createFeatureHandler("v1_20_3");
} else if (version.contains("1.20")) {
this.createFeatureHandler("v1_20");
}
} catch (Exception e) {
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
rootProject.name = "HMCLeaves"
include(
"common",
"v1_20_3",
"v1_20",
"v1_19_4",
"v1_19_3",
Expand Down
34 changes: 34 additions & 0 deletions v1_20_3/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
plugins {
id("java")
id("io.papermc.paperweight.userdev") version "1.5.11"
}

group = "io.github.fisher2911"
version = "1.1.2"

repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://oss.sonatype.org/content/repositories/central")
maven("https://jitpack.io")
maven("https://maven.enginehub.org/repo/")
maven("https://repo.codemc.io/repository/maven-snapshots/")
maven("https://mvn.lumine.io/repository/maven-public/") { metadataSources { artifact() } }
maven("https://repo.xenondevs.xyz/releases")
}

dependencies {
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
paperweight.paperDevBundle("1.20.4-R0.1-SNAPSHOT")
implementation(project(":common"))
}

tasks {
assemble {
dependsOn(reobfJar)
}
}
Loading
Loading