From f43ccb67d22c3fd2e739180eed7c1feb48711b65 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 6 Aug 2018 02:22:36 +1200 Subject: [PATCH] Convert ChatComponent to its nms value --- src/me/libraryaddict/disguise/utilities/ReflectionManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/me/libraryaddict/disguise/utilities/ReflectionManager.java b/src/me/libraryaddict/disguise/utilities/ReflectionManager.java index 1d720a0f..b6100baf 100644 --- a/src/me/libraryaddict/disguise/utilities/ReflectionManager.java +++ b/src/me/libraryaddict/disguise/utilities/ReflectionManager.java @@ -811,6 +811,8 @@ public class ReflectionManager { return Optional.empty(); else return Optional.of(val); + } else if (val instanceof WrappedChatComponent) { + return Optional.of(((WrappedChatComponent) val).getHandle()); } } else if (value instanceof Vector3F) { Vector3F angle = (Vector3F) value;