Explorar o código

Reduce search timeout from 30 seconds to 10 seconds

Signed-off-by: shedaniel <daniel@shedaniel.me>
shedaniel %!s(int64=5) %!d(string=hai) anos
pai
achega
f85fa41817

+ 1 - 1
gradle.properties

@@ -1,4 +1,4 @@
-mod_version=4.1.9-unstable
+mod_version=4.1.10-unstable
 supported_version=20w16a
 minecraft_version=20w16a
 yarn_version=20w16a+build.1

+ 1 - 1
src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java

@@ -588,7 +588,7 @@ public class EntryListWidget extends WidgetWithBounds {
                         }));
                     }
                     try {
-                        CompletableFuture.allOf(completableFutures.toArray(new CompletableFuture[0])).get(30, TimeUnit.SECONDS);
+                        CompletableFuture.allOf(completableFutures.toArray(new CompletableFuture[0])).get(10, TimeUnit.SECONDS);
                     } catch (InterruptedException | ExecutionException | TimeoutException e) {
                         e.printStackTrace();
                     }