Skip to content

Commit

Permalink
1.21-rc1 (Payload Splitter Test Interface)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Jun 10, 2024
1 parent 2ea7b52 commit c73b5dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/fi/dy/masa/malilib/network/PayloadSplitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ private static <T extends CustomPayload> boolean send(IPluginClientPlayHandler<T
}

@ApiStatus.Experimental
public static <T extends CustomPayload> void receive(IPluginClientPlayHandler<T> handler,
PacketByteBuf buf,
ClientPlayNetworkHandler networkHandler)
public static <T extends CustomPayload> PacketByteBuf receive(IPluginClientPlayHandler<T> handler,
PacketByteBuf buf,
ClientPlayNetworkHandler networkHandler)
{
handler.decodeWithSplitter(networkHandler, receive(handler.getPayloadChannel(), buf, DEFAULT_MAX_RECEIVE_SIZE_S2C, networkHandler));
return receive(handler.getPayloadChannel(), buf, DEFAULT_MAX_RECEIVE_SIZE_S2C, networkHandler);
}

@Nullable
Expand Down

0 comments on commit c73b5dc

Please sign in to comment.