From 386b2e8156bb4bb3a9333b29ec24599040ddd03b Mon Sep 17 00:00:00 2001 From: ix0rai Date: Wed, 8 May 2024 16:30:30 -0500 Subject: [PATCH] fix networking --- src/main/java/io/ix0rai/rainglow/data/RainglowMode.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/io/ix0rai/rainglow/data/RainglowMode.java b/src/main/java/io/ix0rai/rainglow/data/RainglowMode.java index 796ab91..b62cf7b 100644 --- a/src/main/java/io/ix0rai/rainglow/data/RainglowMode.java +++ b/src/main/java/io/ix0rai/rainglow/data/RainglowMode.java @@ -139,7 +139,6 @@ public static void printLoadedModes() { public static void write(PacketByteBuf buf, RainglowMode mode) { buf.writeString(mode.getId()); TextCodecs.UNLIMITED_TEXT_PACKET_CODEC.encode(buf, mode.getText()); - buf.writeString(mode.getText().toString()); List colourIds = mode.getColours().stream().map(RainglowColour::getId).toList(); buf.writeCollection(colourIds, PacketByteBuf::writeString); }