Fix issue with component array converter (#372)

This commit is contained in:
蒋天蓓 2017-07-07 23:42:17 +08:00 committed by Dan Mulloy
parent 501244cb3c
commit 59171c5443

View File

@ -1381,7 +1381,7 @@ public class PacketContainer implements Serializable {
private static class ComponentArrayConverter implements EquivalentConverter<WrappedChatComponent[]> {
private static final EquivalentConverter<WrappedChatComponent[]> DELEGATE;
static {
if (!PacketType.Play.Server.UPDATE_SIGN.isDeprecated()) {
if (MinecraftReflection.signUpdateExists()) {
DELEGATE = new LegacyComponentConverter();
} else {
DELEGATE = new NBTComponentConverter();