mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-12-31 21:47:54 +01:00
Fix issue with component array converter (#372)
This commit is contained in:
parent
501244cb3c
commit
59171c5443
@ -1381,7 +1381,7 @@ public class PacketContainer implements Serializable {
|
|||||||
private static class ComponentArrayConverter implements EquivalentConverter<WrappedChatComponent[]> {
|
private static class ComponentArrayConverter implements EquivalentConverter<WrappedChatComponent[]> {
|
||||||
private static final EquivalentConverter<WrappedChatComponent[]> DELEGATE;
|
private static final EquivalentConverter<WrappedChatComponent[]> DELEGATE;
|
||||||
static {
|
static {
|
||||||
if (!PacketType.Play.Server.UPDATE_SIGN.isDeprecated()) {
|
if (MinecraftReflection.signUpdateExists()) {
|
||||||
DELEGATE = new LegacyComponentConverter();
|
DELEGATE = new LegacyComponentConverter();
|
||||||
} else {
|
} else {
|
||||||
DELEGATE = new NBTComponentConverter();
|
DELEGATE = new NBTComponentConverter();
|
||||||
|
Loading…
Reference in New Issue
Block a user