From 83d28461f03f10b6fcdfbca19530f04f59d4d647 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 16 May 2023 00:34:12 -0400 Subject: [PATCH] augh --- core/src/mindustry/core/Platform.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/mindustry/core/Platform.java b/core/src/mindustry/core/Platform.java index b0c5073e76..73e65615be 100644 --- a/core/src/mindustry/core/Platform.java +++ b/core/src/mindustry/core/Platform.java @@ -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;