Skip to content

Commit

Permalink
fix typo in "FOLLOW_TRANFERS"
Browse files Browse the repository at this point in the history
  • Loading branch information
onebeastchris committed May 18, 2024
1 parent bfaef43 commit a1b559d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public void packetReceived(Session session, Packet packet) {
} else if (packet instanceof ClientboundStartConfigurationPacket) {
session.send(new ServerboundConfigurationAcknowledgedPacket());
} else if (packet instanceof ClientboundTransferPacket transferPacket) {
if (session.getFlag(MinecraftConstants.FOLLOW_TRANFERS, true)) {
if (session.getFlag(MinecraftConstants.FOLLOW_TRANSFERS, true)) {
TcpClientSession newSession = new TcpClientSession(transferPacket.getHost(), transferPacket.getPort(), session.getPacketProtocol());
newSession.setFlags(session.getFlags());
session.disconnect("Transferring");
Expand All @@ -142,7 +142,7 @@ public void packetReceived(Session session, Packet packet) {
session.send(new ServerboundSelectKnownPacks(Collections.emptyList()));
}
} else if (packet instanceof ClientboundTransferPacket transferPacket) {
if (session.getFlag(MinecraftConstants.FOLLOW_TRANFERS, true)) {
if (session.getFlag(MinecraftConstants.FOLLOW_TRANSFERS, true)) {
TcpClientSession newSession = new TcpClientSession(transferPacket.getHost(), transferPacket.getPort(), session.getPacketProtocol());
newSession.setFlags(session.getFlags());
session.disconnect("Transferring");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public final class MinecraftConstants {
/**
* Session flag for determining whether to create a new TcpClientSession when the Java server sends a ClientboundTransferPacket.
*/
public static final Flag<Boolean> FOLLOW_TRANFERS = new Flag<>("follow-transfers", Boolean.class);
public static final Flag<Boolean> FOLLOW_TRANSFERS = new Flag<>("follow-transfers", Boolean.class);

// Server Key Constants

Expand Down

0 comments on commit a1b559d

Please sign in to comment.