Skip to content

Commit

Permalink
change to readZipInputStreamFor
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Aug 22, 2024
1 parent c4556d1 commit 7eea9ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ org.gradle.parallel=true

maven_group=xyz.wagyourtail.unimined
archives_base_name=unimined
version=1.3.8
version=1.3.9

Original file line number Diff line number Diff line change
Expand Up @@ -805,13 +805,10 @@ open class MinecraftProvider(project: Project, sourceSet: SourceSet) : Minecraft
javaVersion = minecraftData.metadata.javaVersion
workingDir = defaultWorkingDir
classpath = sourceSet.runtimeClasspath
minecraftData.minecraftServer.path.openZipFileSystem().use {
minecraftData.minecraftServer.path.readZipInputStreamFor("META-INF/MANIFEST.MF", false) {
val properties = Properties()
val metainf = it.getPath("META-INF/MANIFEST.MF")
if (metainf.exists()) {
metainf.inputStream().use { properties.load(it) }
mainClass.set(properties.getProperty("Main-Class"))
}
properties.load(it)
mainClass.set(properties.getProperty("Main-Class"))
}
args = mutableListOf("nogui")

Expand Down

0 comments on commit 7eea9ba

Please sign in to comment.