Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Seppe Volkaerts <seppevolkaerts@hotmail.com>
  • Loading branch information
Cybermaxke committed Oct 26, 2024
1 parent 04cf263 commit a98406e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a98406e

Please sign in to comment.