From 27c793c6d596580a02bde826a11ee1ffae553db2 Mon Sep 17 00:00:00 2001 From: Lumine1909 <133463833+Lumine1909@users.noreply.github.com> Date: Sat, 30 Nov 2024 06:31:05 -0500 Subject: [PATCH] Caused by not reading the doc https://guava.dev/releases/21.0/api/docs/com/google/common/cache/Cache.html#get-K-java.util.concurrent.Callable- --- patches/server/0115-Bytebuf-API.patch | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/patches/server/0115-Bytebuf-API.patch b/patches/server/0115-Bytebuf-API.patch index 4068527..bb27744 100644 --- a/patches/server/0115-Bytebuf-API.patch +++ b/patches/server/0115-Bytebuf-API.patch @@ -409,10 +409,10 @@ index 0000000000000000000000000000000000000000..9601eb5aa8cbcf1836cba7853af9ece2 +} diff --git a/src/main/java/org/leavesmc/leaves/bytebuf/internal/InternalBytebufHandler.java b/src/main/java/org/leavesmc/leaves/bytebuf/internal/InternalBytebufHandler.java new file mode 100644 -index 0000000000000000000000000000000000000000..dccb9b0bdd1fea20f1b073ccaf8e911140b5e333 +index 0000000000000000000000000000000000000000..04dbb4cb7c3ea4979c33dba595208e22e6552b0a --- /dev/null +++ b/src/main/java/org/leavesmc/leaves/bytebuf/internal/InternalBytebufHandler.java -@@ -0,0 +1,235 @@ +@@ -0,0 +1,234 @@ +package org.leavesmc.leaves.bytebuf.internal; + +import com.google.common.cache.Cache; @@ -446,7 +446,6 @@ index 0000000000000000000000000000000000000000..dccb9b0bdd1fea20f1b073ccaf8e9111 +import java.lang.reflect.Field; +import java.util.HashMap; +import java.util.Map; -+import java.util.concurrent.ExecutionException; + +import static org.leavesmc.leaves.bytebuf.packet.PacketType.*; + @@ -633,7 +632,7 @@ index 0000000000000000000000000000000000000000..dccb9b0bdd1fea20f1b073ccaf8e9111 + throw new RuntimeException(e); + } + }); -+ } catch (ExecutionException ignore) { ++ } catch (Exception ignore) { + return null; + } + }