Switch to the MCPHackers launchwrapper
This commit is contained in:
parent
a376327441
commit
8de55f0515
2 changed files with 10 additions and 13 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)
|
||||
|
|
|
@ -758,16 +758,4 @@ public class Minecraft implements Runnable, LevelLoaderListener {
|
|||
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws LWJGLException {
|
||||
boolean fullScreen = false;
|
||||
|
||||
for(int minecraft = 0; minecraft < args.length; ++minecraft) {
|
||||
if(args[minecraft].equalsIgnoreCase("-fullscreen")) {
|
||||
fullScreen = true;
|
||||
}
|
||||
}
|
||||
|
||||
Minecraft var3 = new Minecraft((Canvas)null, 854, 480, fullScreen);
|
||||
(new Thread(var3)).start();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue