Update FakePlayer for API change

This commit is contained in:
Heliosares
2023-06-06 11:51:11 -04:00
parent d97cded197
commit dfa7a31326

View File

@@ -76,7 +76,7 @@ public class FakePlayer {
if (skin != null) profile.getProperties().put("textures", skin.wrap());
// TODO fake player still being added to list
packet.getPlayerInfoDataLists().write(1, List.of(
new PlayerInfoData(uuid, 0, false, EnumWrappers.NativeGameMode.SURVIVAL, profile, WrappedChatComponent.fromLegacyText(name), null)
new PlayerInfoData(uuid, 0, false, EnumWrappers.NativeGameMode.SURVIVAL, profile, WrappedChatComponent.fromLegacyText(name), (WrappedRemoteChatSessionData) null)
));
protocol.sendServerPacket(audience, packet);