From 66bea3e1b85ec419a1c14e8b25c3edeaa03015ac Mon Sep 17 00:00:00 2001 From: Swedz Date: Tue, 17 Sep 2024 04:36:08 -0400 Subject: [PATCH] Fix proxy environment test when no mods are required (#15) --- .../net/swedz/tesseract/neoforge/proxy/ProxyEnvironment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/swedz/tesseract/neoforge/proxy/ProxyEnvironment.java b/src/main/java/net/swedz/tesseract/neoforge/proxy/ProxyEnvironment.java index 2cd946dd..4ae11883 100644 --- a/src/main/java/net/swedz/tesseract/neoforge/proxy/ProxyEnvironment.java +++ b/src/main/java/net/swedz/tesseract/neoforge/proxy/ProxyEnvironment.java @@ -41,6 +41,6 @@ public enum ProxyEnvironment public boolean test(List modIds) { - return modIds.stream().allMatch(test); + return !modIds.isEmpty() ? modIds.stream().allMatch(test) : test.test(""); } }