Skip to content

Commit

Permalink
Update src/main/java/org/spongepowered/common/network/channel/SpongeC…
Browse files Browse the repository at this point in the history
…hannelManager.java

Co-authored-by: Joni Aromaa <me@joniaromaa.fi>
  • Loading branch information
avaruus1 and aromaa authored Nov 24, 2023
1 parent 66b6b0a commit 8c04fa2
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,14 +386,12 @@ public void handleLoginResponsePayload(final EngineConnection connection, final
// Client -> Server response

final int transactionId = packet.transactionId();
final ChannelBuf payload;

final ChannelBuf payload;
if (packet.payload() != null) {
payload = this.bufferAllocator.buffer();
packet.payload().write((FriendlyByteBuf) payload);
}

else {
} else {
payload = null;
}

Expand Down

0 comments on commit 8c04fa2

Please sign in to comment.