Archiviert
13
0

Fix an issue getting chat component arrays

Dieser Commit ist enthalten in:
Dan Mulloy 2014-12-01 16:11:27 -05:00
Ursprung 1c8e3b5ee3
Commit 18a45aace0
2 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -614,7 +614,7 @@ public class PacketContainer implements Serializable {
public StructureModifier<WrappedChatComponent[]> getChatComponentArrays() { public StructureModifier<WrappedChatComponent[]> getChatComponentArrays() {
// Convert to and from the Bukkit wrapper // Convert to and from the Bukkit wrapper
return structureModifier.<WrappedChatComponent[]>withType( return structureModifier.<WrappedChatComponent[]>withType(
MinecraftReflection.getIChatBaseComponentClass(), MinecraftReflection.getIChatBaseComponentArrayClass(),
BukkitConverters.getIgnoreNull(new WrappedChatComponentArrayConverter())); BukkitConverters.getIgnoreNull(new WrappedChatComponentArrayConverter()));
} }

Datei anzeigen

@ -742,6 +742,10 @@ public class MinecraftReflection {
} }
} }
public static Class<?> getIChatBaseComponentArrayClass() {
return getArrayClass(getIChatBaseComponentClass());
}
/** /**
* Retrieve the NMS chat component text class. * Retrieve the NMS chat component text class.
* @return The chat component class. * @return The chat component class.