mirror of
https://github.com/TeamMidnightDust/CullLeaves.git
synced 2025-12-16 06:15:08 +01:00
release: v4.1.1
- Port to 1.21.11 (Mounts of Mayhem) - Add support for Sodium 0.8.0 - Update to MidnightLib 1.9.2
This commit is contained in:
@@ -25,6 +25,9 @@ repositories {
|
||||
|
||||
// MidnightLib
|
||||
maven("https://maven.midnightdust.eu/releases/")
|
||||
|
||||
// Sodium
|
||||
maven("https://maven.caffeinemc.net/releases")
|
||||
}
|
||||
dependencies {
|
||||
minecraft("com.mojang:minecraft:$minecraft")
|
||||
@@ -47,7 +50,11 @@ dependencies {
|
||||
}
|
||||
if (loader == "neoforge") {
|
||||
"neoForge"("net.neoforged:neoforge:${mod.dep("neoforge_loader")}")
|
||||
modCompileOnly("maven.modrinth:sodium:${mod.dep("sodium_version")}-neoforge")
|
||||
|
||||
if (minecraft == "1.21.11")
|
||||
modCompileOnly("net.caffeinemc:sodium-neoforge-mod:0.8.0+mc1.21.11")
|
||||
else
|
||||
modCompileOnly("maven.modrinth:sodium:${mod.dep("sodium_version")}-neoforge")
|
||||
}
|
||||
mappings (loom.officialMojangMappings())
|
||||
}
|
||||
@@ -218,6 +225,10 @@ stonecutter {
|
||||
constants {
|
||||
arrayOf("fabric", "neoforge", "forge").forEach { it -> put(it, loader == it) }
|
||||
}
|
||||
replacements.string {
|
||||
direction = eval(current.version, ">=1.21.11")
|
||||
replace("ResourceLocation", "Identifier")
|
||||
}
|
||||
replacements.string {
|
||||
direction = eval(current.version, ">=1.21")
|
||||
replace("new ResourceLocation", "ResourceLocation.fromNamespaceAndPath")
|
||||
|
||||
Reference in New Issue
Block a user