Skip to content

Commit

Permalink
Add 1.21.40 login fields
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeheat authored Dec 7, 2024
1 parent f48b508 commit 951d498
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/handshake/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ module.exports = (client, server, options) => {
IsEditorMode: false,
TrustedSkin: client.versionGreaterThanOrEqualTo('1.19.20') ? false : undefined,
OverrideSkin: client.versionGreaterThanOrEqualTo('1.19.62') ? false : undefined,
CompatibleWithClientSideChunkGen: client.versionGreaterThanOrEqualTo('1.19.80') ? false : undefined
CompatibleWithClientSideChunkGen: client.versionGreaterThanOrEqualTo('1.19.80') ? false : undefined,

MaxViewDistance: client.versionGreaterThanOrEqualTo('1.21.40') ? 0 : undefined,
MemoryTier: client.versionGreaterThanOrEqualTo('1.21.40') ? 0 : undefined,
PlatformType: client.versionGreaterThanOrEqualTo('1.21.40') ? 0 : undefined
}
const customPayload = options.skinData || {}
payload = { ...payload, ...customPayload }
Expand Down

0 comments on commit 951d498

Please sign in to comment.