mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-09 15:29:20 -04:00
fix typo in comment
This commit is contained in:
parent
d54c95ebbb
commit
75167cdbba
@ -97,7 +97,7 @@ public class PacketChunkData implements ClientboundPacket {
|
|||||||
|
|
||||||
if (size > 0) {
|
if (size > 0) {
|
||||||
chunk = ChunkUtil.readChunkPacket(buffer, (short) sectionBitMask, (short) 0, groundUpContinuous, containsSkyLight);
|
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);
|
buffer.setPosition(size + lastPos);
|
||||||
}
|
}
|
||||||
if (buffer.getVersionId() >= 110) {
|
if (buffer.getVersionId() >= 110) {
|
||||||
|
@ -101,7 +101,7 @@ public class LANServerListener {
|
|||||||
}
|
}
|
||||||
String rawAddress = Util.getStringBetween(parsed, PORT_START_STRING, PORT_END_STRING);
|
String rawAddress = Util.getStringBetween(parsed, PORT_START_STRING, PORT_END_STRING);
|
||||||
if (rawAddress.contains(":")) {
|
if (rawAddress.contains(":")) {
|
||||||
// weired, just extract the port
|
// weird, just extract the port
|
||||||
rawAddress = rawAddress.split(":")[1];
|
rawAddress = rawAddress.split(":")[1];
|
||||||
}
|
}
|
||||||
int port = Integer.parseInt(rawAddress);
|
int port = Integer.parseInt(rawAddress);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user