Switch to the MCPHackers launchwrapper
This commit is contained in:
parent
a48a85f943
commit
4eeb6615d6
2 changed files with 10 additions and 7 deletions
11
build.gradle
11
build.gradle
|
@ -66,6 +66,9 @@ dependencies {
|
|||
provided "org.lwjgl.lwjgl:lwjgl_util:$lwjglVersion"
|
||||
provided platform("org.lwjgl.lwjgl:lwjgl-platform:$lwjglVersion-$lwjglNatives")
|
||||
|
||||
|
||||
provided 'org.mcphackers:launchwrapper:1.0'
|
||||
|
||||
}
|
||||
|
||||
// Apply a specific Java toolchain to ease working on different environments.
|
||||
|
@ -77,10 +80,11 @@ java {
|
|||
|
||||
application {
|
||||
// Define the main class for the application.
|
||||
mainClass = 'com.mojang.minecraft.Minecraft'
|
||||
mainClass = 'org.mcphackers.launchwrapper.Launch'
|
||||
}
|
||||
|
||||
jar {
|
||||
duplicatesStrategy = "exclude"
|
||||
manifest {
|
||||
attributes (
|
||||
'Main-Class': application.mainClass,
|
||||
|
@ -125,6 +129,11 @@ task jarjar(type: Jar) {
|
|||
with copyNatives
|
||||
}
|
||||
|
||||
|
||||
run {
|
||||
jvmArgs ["-Djava.library.path=${project.nativeLibsDir}",]
|
||||
}
|
||||
|
||||
jar.finalizedBy(jarjar)
|
||||
jar.finalizedBy(copyToLib)
|
||||
jar.finalizedBy(copyNatives)
|
||||
|
|
|
@ -982,10 +982,4 @@ public final class Minecraft implements Runnable {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void main(String[] args) throws LWJGLException {
|
||||
Minecraft minecraft = new Minecraft((Canvas)null, 854, 480, false);
|
||||
(new Thread(minecraft)).start();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue