mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
augh
This commit is contained in:
parent
874cba7ad3
commit
83d28461f0
1 changed files with 4 additions and 0 deletions
|
|
@ -172,6 +172,10 @@ public interface Platform{
|
|||
}
|
||||
|
||||
String result = OS.exec(args.toArray(String.class));
|
||||
//first line.
|
||||
if(result.length() > 1 && result.contains("\n")){
|
||||
result = result.split("\n")[0];
|
||||
}
|
||||
|
||||
//cancelled selection, ignore result
|
||||
if(result.isEmpty() || result.equals("\n")) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue