From b7d42a767ac920119b8e51e8b5d715e5a69fcdce Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Thu, 6 Apr 2023 20:42:05 +0200 Subject: [PATCH] idk --- src/de/steamwar/bungeecore/util/SchematicSearch.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/bungeecore/util/SchematicSearch.java b/src/de/steamwar/bungeecore/util/SchematicSearch.java index c9d8c85a..4b4dcfb1 100644 --- a/src/de/steamwar/bungeecore/util/SchematicSearch.java +++ b/src/de/steamwar/bungeecore/util/SchematicSearch.java @@ -162,14 +162,17 @@ public class SchematicSearch { InputStream stdout = process.getInputStream(); InputStream stderr = process.getErrorStream(); - while (!process.waitFor(100, TimeUnit.MILLISECONDS)) { + String bar = ""; + while (!process.waitFor(200, TimeUnit.MILLISECONDS)) { String s = readInputStream(stderr); if (s.length() > 0) { if (s.contains("s[")) { s = s.substring(s.lastIndexOf("s[") + 1); } - BungeeCore.send(player, ChatMessageType.ACTION_BAR, "§7" + s.replace("█", "§e█§7")); + s = s.replace("█", "§e█§7"); + bar = s; } + BungeeCore.send(player, ChatMessageType.ACTION_BAR, "§7" + bar); } String s = readInputStream(stderr); if (s.contains("s[")) {