JVM Args & Don't use mappings on 26.1+
This commit is contained in:
@@ -126,9 +126,11 @@ if (isNotCommonProject) {
|
|||||||
unimined.minecraft(sourceSets.main, true) {
|
unimined.minecraft(sourceSets.main, true) {
|
||||||
version gradle.ext.minecraft_version
|
version gradle.ext.minecraft_version
|
||||||
|
|
||||||
mappings {
|
if (gradle.ext.minecraft_version.startsWith("1.")) { // 26.1+ doesn't use obfuscation
|
||||||
mojmap()
|
mappings {
|
||||||
//devNamespace "mojmap"
|
mojmap()
|
||||||
|
devNamespace "mojmap"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -347,6 +349,26 @@ if (isNotCommonProject) {
|
|||||||
!file.path.contains("common${File.separator}build") &&
|
!file.path.contains("common${File.separator}build") &&
|
||||||
!(shadowedPaths.contains(file.path) && !loaderPaths.contains(file.path))
|
!(shadowedPaths.contains(file.path) && !loaderPaths.contains(file.path))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Shared run directory so all loaders use the same worlds
|
||||||
|
def isClient = runTask.name.toLowerCase().contains("client")
|
||||||
|
runTask.workingDir = rootProject.file("run/${isClient ? 'client' : 'server'}")
|
||||||
|
|
||||||
|
// JVM args
|
||||||
|
runTask.jvmArgs(
|
||||||
|
"-Dio.netty.leakDetection.level=advanced",
|
||||||
|
"-XX:+UseZGC",
|
||||||
|
"-XX:+ZGenerational",
|
||||||
|
)
|
||||||
|
if (isClient) {
|
||||||
|
runTask.jvmArgs(
|
||||||
|
"-Dminecraft.api.auth.host=https://nope.invalid",
|
||||||
|
"-Dminecraft.api.account.host=https://nope.invalid",
|
||||||
|
"-Dminecraft.api.session.host=https://nope.invalid",
|
||||||
|
"-Dminecraft.api.services.host=https://nope.invalid",
|
||||||
|
)
|
||||||
|
runTask.args("--username", "Dev", "--renderDebugLabels", "--tracy")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,7 @@ minecraft_version=26.1
|
|||||||
parchment_version=1.21:2024.07.28
|
parchment_version=1.21:2024.07.28
|
||||||
compatible_minecraft_versions=["26.1"]
|
compatible_minecraft_versions=["26.1"]
|
||||||
accessWidenerVersion=1_21_11
|
accessWidenerVersion=1_21_11
|
||||||
builds_for=
|
builds_for=fabric,neoforge
|
||||||
#fabric,neoforge
|
|
||||||
# forge is broken due to gradle/build script issues
|
# forge is broken due to gradle/build script issues
|
||||||
|
|
||||||
# Netty
|
# Netty
|
||||||
@@ -34,7 +33,7 @@ fabric_recommend_list={}
|
|||||||
# 0 = Don't enable and don't run
|
# 0 = Don't enable and don't run
|
||||||
# 1 = Can be referenced in code but doesn't run
|
# 1 = Can be referenced in code but doesn't run
|
||||||
# 2 = Can be referenced in code and runs in client
|
# 2 = Can be referenced in code and runs in client
|
||||||
enable_mod_menu=2
|
enable_mod_menu=0
|
||||||
enable_starlight=0
|
enable_starlight=0
|
||||||
enable_phosphor=0
|
enable_phosphor=0
|
||||||
enable_sodium=1
|
enable_sodium=1
|
||||||
@@ -46,7 +45,7 @@ enable_canvas=0
|
|||||||
|
|
||||||
# NeoForge loader
|
# NeoForge loader
|
||||||
forge_version=
|
forge_version=
|
||||||
neoforge_version=26.1.0.1-beta
|
neoforge_version=1-beta
|
||||||
neoforge_version_range=[*,)
|
neoforge_version_range=[*,)
|
||||||
|
|
||||||
# NeoForge mod versions
|
# NeoForge mod versions
|
||||||
@@ -56,4 +55,4 @@ neo_iris_version=
|
|||||||
# 0 = Don't enable and don't run
|
# 0 = Don't enable and don't run
|
||||||
# 1 = Can be referenced in code but doesn't run
|
# 1 = Can be referenced in code but doesn't run
|
||||||
# 2 = Can be referenced in code and runs in client
|
# 2 = Can be referenced in code and runs in client
|
||||||
neo_enable_iris=0
|
neo_enable_iris=0
|
||||||
|
|||||||
Reference in New Issue
Block a user