From 100ae1c6802d88a043538a8e2f75f07d916573c0 Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Sat, 6 Feb 2021 11:18:51 -0300 Subject: [PATCH] Update SpongeEncodeHandler.java --- .../myles/ViaVersion/sponge/handlers/SpongeEncodeHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sponge/src/main/java/us/myles/ViaVersion/sponge/handlers/SpongeEncodeHandler.java b/sponge/src/main/java/us/myles/ViaVersion/sponge/handlers/SpongeEncodeHandler.java index ecd85a684..cc4345775 100644 --- a/sponge/src/main/java/us/myles/ViaVersion/sponge/handlers/SpongeEncodeHandler.java +++ b/sponge/src/main/java/us/myles/ViaVersion/sponge/handlers/SpongeEncodeHandler.java @@ -36,7 +36,7 @@ public class SpongeEncodeHandler extends MessageToByteEncoder implements } } } else { - bytebuf.write((ByteBuf) o) + bytebuf.writeBytes((ByteBuf) o) } transform(bytebuf); }