Fix split packet transformer splitting into wrong parts, minus 10 more bytes for safety (#270)

This commit is contained in:
shedaniel
2022-05-28 19:30:39 +08:00
committed by GitHub
parent 3b8b9049e0
commit 23c5587442
2 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ public interface TestModNet {
// An example Server to Client message
MessageType SYNC_DATA = NET.registerS2C("sync_data", SyncDataMessage::new);
ResourceLocation BIG_DATA = new ResourceLocation(TestMod.MOD_ID, "big_data");
String BIG_STRING = StringUtils.repeat('a', 60000);
String BIG_STRING = StringUtils.repeat('a', 100000);
static void initialize() {
NetworkManager.registerReceiver(NetworkManager.Side.C2S, BIG_DATA, Collections.singletonList(new SplitPacketTransformer()), (buf, context) -> {