Skip to content

Commit

Permalink
Upgrade to #179
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomm0017 committed Apr 13, 2019
1 parent 8391618 commit fc877ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion game.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# You want to edit these to fit your game.
name: "RS Mod Server"
game-port: 43594
revision: 178
revision: 179

# The coordinates for the home location.
home-x: 3087
Expand Down
4 changes: 2 additions & 2 deletions net/src/main/kotlin/gg/rsmod/net/codec/login/LoginDecoder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ class LoginDecoder(private val serverRevision: Int, private val cacheCrcs: IntAr
} else {
val authType = secureBuf.readByte().toInt()

if (authType == 0) {
if (authType == 1) {
authCode = secureBuf.readInt()
} else if (authType == 1 || authType == 3) {
} else if (authType == 0 || authType == 2) {
authCode = secureBuf.readUnsignedMedium()
secureBuf.skipBytes(Byte.SIZE_BYTES)
} else {
Expand Down

1 comment on commit fc877ef

@numemac
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work :)

Please sign in to comment.