add chat component for disconnect packet when running clone test
This commit is contained in:
parent
d8965a4999
commit
cf4e3e8c92
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue