Skip to content

Commit 59c343d

Browse files
committed
brand: send without length prefix
1 parent af22dba commit 59c343d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/main/java/de/bixilon/minosoft/protocol/network/session/play/channel/vanila

src/main/java/de/bixilon/minosoft/protocol/network/session/play/channel/vanila/BrandHandler.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Minosoft
3-
* Copyright (C) 2020-2024 Moritz Zwerger
3+
* Copyright (C) 2020-2026 Moritz Zwerger
44
*
55
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
66
*
@@ -51,7 +51,7 @@ object BrandHandler {
5151
) : PlayChannelHandler {
5252

5353
override fun handle(buffer: PlayInByteBuffer) {
54-
session.serverInfo.brand = buffer.readString()
54+
session.serverInfo.brand = buffer.readString(buffer.size)
5555
}
5656
}
5757
}

0 commit comments

Comments
 (0)