fixed pending #2291 changes

This commit is contained in:
creeper123123321 2021-02-06 10:21:34 -03:00
parent 91319402f3
commit 6941b48038
2 changed files with 3 additions and 2 deletions

View File

@ -56,7 +56,7 @@ public class BukkitEncodeHandler extends MessageToByteEncoder implements ViaHand
} }
} else { } else {
bytebuf.clear().writeBytes((ByteBuf) o); bytebuf.writeBytes((ByteBuf) o);
} }
transform(bytebuf); transform(bytebuf);
} }

View File

@ -35,8 +35,9 @@ public class SpongeEncodeHandler extends MessageToByteEncoder<Object> implements
throw (Error) e.getCause(); throw (Error) e.getCause();
} }
} }
} else {
bytebuf.write((ByteBuf) o)
} }
transform(bytebuf); transform(bytebuf);
} }