From 75167cdbba7d23f7783333ac81f5ae06a9ec1744 Mon Sep 17 00:00:00 2001 From: Bixilon Date: Mon, 9 Nov 2020 17:15:26 +0100 Subject: [PATCH] fix typo in comment --- .../protocol/packets/clientbound/play/PacketChunkData.java | 2 +- .../bixilon/minosoft/protocol/protocol/LANServerListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/bixilon/minosoft/protocol/packets/clientbound/play/PacketChunkData.java b/src/main/java/de/bixilon/minosoft/protocol/packets/clientbound/play/PacketChunkData.java index daec002fc..d100844de 100644 --- a/src/main/java/de/bixilon/minosoft/protocol/packets/clientbound/play/PacketChunkData.java +++ b/src/main/java/de/bixilon/minosoft/protocol/packets/clientbound/play/PacketChunkData.java @@ -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) { diff --git a/src/main/java/de/bixilon/minosoft/protocol/protocol/LANServerListener.java b/src/main/java/de/bixilon/minosoft/protocol/protocol/LANServerListener.java index 624173e54..31a5470f8 100644 --- a/src/main/java/de/bixilon/minosoft/protocol/protocol/LANServerListener.java +++ b/src/main/java/de/bixilon/minosoft/protocol/protocol/LANServerListener.java @@ -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);