fix typo in comment

This commit is contained in:
Bixilon 2020-11-09 17:15:26 +01:00
parent d54c95ebbb
commit 75167cdbba
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ public class PacketChunkData implements ClientboundPacket {
if (size > 0) {
chunk = ChunkUtil.readChunkPacket(buffer, (short) sectionBitMask, (short) 0, groundUpContinuous, containsSkyLight);
// set position of the byte buffer, because of some reasons HyPixel makes some weired stuff and sends way to much 0 bytes. (~ 190k), thanks @pokechu22
// set position of the byte buffer, because of some reasons HyPixel makes some weird stuff and sends way to much 0 bytes. (~ 190k), thanks @pokechu22
buffer.setPosition(size + lastPos);
}
if (buffer.getVersionId() >= 110) {

View File

@ -101,7 +101,7 @@ public class LANServerListener {
}
String rawAddress = Util.getStringBetween(parsed, PORT_START_STRING, PORT_END_STRING);
if (rawAddress.contains(":")) {
// weired, just extract the port
// weird, just extract the port
rawAddress = rawAddress.split(":")[1];
}
int port = Integer.parseInt(rawAddress);