Skip to content

Commit

Permalink
Allow PacketSplitter to receive larger packets from the client.
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Jun 29, 2024
1 parent 25fc0f2 commit aaf84d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ author = masa
mod_file_name = servux-fabric

# Current mod version
mod_version = 0.2.0-entity_data.6
mod_version = 0.2.0-entity_data.7

# The Minecraft version that gets set in the built file name
minecraft_version_out = 1.21
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/fi/dy/masa/servux/network/PacketSplitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public static <T extends CustomPayload> PacketByteBuf receive(IPluginServerPlayH
long key,
PacketByteBuf buf)
{
return receive(handler.getPayloadChannel(), key, buf, DEFAULT_MAX_RECEIVE_SIZE_C2S);
// this size needed to be bumped larger for Litematics
return receive(handler.getPayloadChannel(), key, buf, DEFAULT_MAX_RECEIVE_SIZE_S2C);
}

@Nullable
Expand Down

0 comments on commit aaf84d1

Please sign in to comment.