add chat component for disconnect packet when running clone test

This commit is contained in:
Jendrik Eggers 2023-12-13 13:09:01 +01:00
parent d8965a4999
commit cf4e3e8c92
No known key found for this signature in database
GPG Key ID: D3C96055B4E1F4B6
1 changed files with 1 additions and 1 deletions

View File

@ -901,7 +901,7 @@ public class PacketContainerTest {
new WrappedDataValue(0, Registry.get(CatVariant.class), catVariantRegistry.e(CatVariant.e)),
new WrappedDataValue(0, Registry.get(FrogVariant.class), FrogVariant.a)
));
} else if (type == PacketType.Play.Server.CHAT) {
} else if (type == PacketType.Play.Server.CHAT || type == PacketType.Login.Server.DISCONNECT) {
constructed.getChatComponents().write(0, ComponentConverter.fromBaseComponent(TEST_COMPONENT));
} else if (type == PacketType.Play.Server.REMOVE_ENTITY_EFFECT || type == PacketType.Play.Server.ENTITY_EFFECT) {
constructed.getEffectTypes().write(0, PotionEffectType.GLOWING);