From a98406ea69dd8dc76bbf2a27ebb57c1f621cecd3 Mon Sep 17 00:00:00 2001 From: Seppe Volkaerts Date: Sat, 26 Oct 2024 20:21:29 +0200 Subject: [PATCH] Fix Signed-off-by: Seppe Volkaerts --- .../lanternpowered/terre/impl/player/ServerConnectionImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/kotlin/org/lanternpowered/terre/impl/player/ServerConnectionImpl.kt b/proxy/src/main/kotlin/org/lanternpowered/terre/impl/player/ServerConnectionImpl.kt index 1e731c7..3da3bfd 100644 --- a/proxy/src/main/kotlin/org/lanternpowered/terre/impl/player/ServerConnectionImpl.kt +++ b/proxy/src/main/kotlin/org/lanternpowered/terre/impl/player/ServerConnectionImpl.kt @@ -89,7 +89,7 @@ internal class ServerConnectionImpl( mods.add(SyncModsPacket.Mod(addon.name, addon.version, addon.hash, listOf())) terreAddonSynced = true } - syncModsPacket = SyncModsPacket(mods.toList()) + val syncModsPacket = SyncModsPacket(mods.toList()) player.previousModsPacket = syncModsPacket val tModLoaderClient = player.protocolVersion is ProtocolVersion.TModLoader @@ -143,7 +143,7 @@ internal class ServerConnectionImpl( } } if (syncMods) { - player.clientConnection.send(SyncModsPacket(mods)) + player.clientConnection.send(syncModsPacket) } else { player.clientConnection.send(syncConfig) // Sending this packet triggers the client to request all the information from the