From 59171c5443584f44981c6f314e2c383fecdffcfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=8B=E5=A4=A9=E8=93=93?= Date: Fri, 7 Jul 2017 23:42:17 +0800 Subject: [PATCH] Fix issue with component array converter (#372) --- .../java/com/comphenix/protocol/events/PacketContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/API/src/main/java/com/comphenix/protocol/events/PacketContainer.java b/modules/API/src/main/java/com/comphenix/protocol/events/PacketContainer.java index 94ba7dd0..0575cae0 100644 --- a/modules/API/src/main/java/com/comphenix/protocol/events/PacketContainer.java +++ b/modules/API/src/main/java/com/comphenix/protocol/events/PacketContainer.java @@ -1381,7 +1381,7 @@ public class PacketContainer implements Serializable { private static class ComponentArrayConverter implements EquivalentConverter { private static final EquivalentConverter DELEGATE; static { - if (!PacketType.Play.Server.UPDATE_SIGN.isDeprecated()) { + if (MinecraftReflection.signUpdateExists()) { DELEGATE = new LegacyComponentConverter(); } else { DELEGATE = new NBTComponentConverter();