Skip to content

Commit

Permalink
Port 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
TonimatasDEV committed Jun 13, 2024
1 parent d373d84 commit 3fa7742
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
val fabricLoaderVersion: String by extra

architectury {
common("fabric", "forge", "neoforge")
common("fabric", /*"forge",*/ "neoforge")
}

dependencies {
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ org.gradle.jvmargs=-Xmx5G
modVersion=1.4.1

# Minecraft
minecraftVersion=1.20.6
minecraftVersionRange=1.20.5,1.20.6
minecraftVersion=1.21
minecraftVersionRange=1.21,1.21

# Forge Properties
forgeVersion=50.0.0

# Fabric Properties
fabricLoaderVersion=0.15.10
fabricLoaderVersion=0.15.11
yarnMappings=1

# NeoForge Properties
neoforgeVersion=20.6.2-beta
neoforgeVersion=21.0.0-beta
6 changes: 5 additions & 1 deletion neoforge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ dependencies {
}

tasks.withType<ProcessResources> {
val replaceProperties = mapOf("minecraftVersionRange" to minecraftVersionRange, "modVersion" to modVersion)
val versionRangeSplit = minecraftVersionRange.split(",")
var versionRange = minecraftVersionRange
if (versionRangeSplit[0] == versionRangeSplit[1]) versionRange = versionRangeSplit[0]

val replaceProperties = mapOf("minecraftVersionRange" to versionRange, "modVersion" to modVersion)
inputs.properties(replaceProperties)

filesMatching("META-INF/neoforge.mods.toml") {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ pluginManagement {
}
}

include("common", "fabric", "forge", "neoforge")
include("common", "fabric", /*"forge",*/ "neoforge")
rootProject.name = "PacketFixer"

0 comments on commit 3fa7742

Please sign in to comment.