File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
adventure-editor/src/main/resources/projectTmpl/desktop Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ targetCompatibility = 1.8
6
6
7
7
sourceSets. main. resources. srcDirs + = [rootProject. file(' assets' ). absolutePath]
8
8
mainClassName = " com.bladecoder.engine.DesktopLauncher"
9
- applicationDefaultJvmArgs = [" -XstartOnFirstThread" ]
9
+ // applicationDefaultJvmArgs = ["-XstartOnFirstThread"]
10
10
11
11
dependencies {
12
12
implementation project(" :core" )
@@ -17,13 +17,19 @@ dependencies {
17
17
implementation " com.badlogicgames.gdx-controllers:gdx-controllers-desktop:$gdxControllersVersion "
18
18
}
19
19
20
+ def os = System . properties[' os.name' ]. toLowerCase()
21
+
20
22
run {
21
23
standardInput = System . in
22
24
ignoreExitValue = true
23
25
24
26
if (project. hasProperty(" appArgs" )) {
25
27
args Eval . me(appArgs)
26
28
}
29
+
30
+ if (os. contains(' mac' )) {
31
+ jvmArgs = [" -XstartOnFirstThread" ]
32
+ }
27
33
}
28
34
29
35
You can’t perform that action at this time.
0 commit comments