From a0b47d37413d85dd24b222f487bc3ad01173774a Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 16 Sep 2019 14:35:39 +1200 Subject: [PATCH] Fixed minecart command kicking players, fixes #395 --- .../disguise/utilities/reflection/ReflectionManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java index ec932dea..028b6449 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java @@ -940,6 +940,8 @@ public class ReflectionManager { return getNmsEntityPose((EntityPose) value); } else if (value instanceof VillagerData) { return getNmsVillagerData((VillagerData) value); + } else if (value instanceof WrappedChatComponent) { + return ((WrappedChatComponent) value).getHandle(); } return value;