owo Network Fix

Fixes the disconnect Failed to encode packet 'clientbound/minecraft:custom_payload' caused by [owo] Sided Packet Codec has not been unpacked on NeoForge 1.21.1.

owo Network Fix

Fixes the disconnect Failed to encode packet 'clientbound/minecraft:custom_payload' caused by [owo] Sided Packet Codec has not been unpacked on NeoForge 1.21.1.

Unofficial fix — not affiliated with Wisp Forest, owo-lib or Accessories.

The problem

You join a world or a server and get kicked right away with:

 
Internal Exception: io.netty.handler.codec.EncoderException: Failed to encode packet 'clientbound/minecraft:custom_payload'
Caused by: java.lang.RuntimeException: Failed encoding custom payload accessories:main:
java.lang.IllegalStateException: [owo] Sided Packet Codec has not been unpacked, issue has occured!

It usually shows up with Accessories (also bundled inside The Aether and other mods), but it can hit any mod that sends packets through owo-lib.

Why it happens

owo-lib registers its packets with a placeholder codec and swaps in the real one inside NeoForge's NetworkRegistry#getCodec, using a mixin that targets the 4th return of that method (ordinal = 3).

Newer NeoForge 21.1 builds (e.g. 21.1.262) added more return statements to that method. The 4th one is now a return null, so owo never swaps the codec. The placeholder is sent as-is and encoding fails.

The fix

A single mixin that unwraps owo's placeholder codec on every return of getCodec, whatever the NeoForge build.

  • No hard dependency on owo-lib (uses reflection). Without owo it does nothing.
  • No config, nothing to set up.
  • When it works, your log shows: [owonetfix] codec owo déballé pour … : correctif actif.

Installation

  • Install on the client and the server.
  • Minecraft 1.21.1, NeoForge 21.1.x.
  • Works alongside owo-lib 0.12.15.x and Accessories 1.1.0 betas.

FAQ

Do I still need owo-lib? Yes. This mod only fixes it, it doesn't replace it.

Can I remove it once owo-lib is updated? Yes. If a future owo-lib release fixes its own mixin, this mod becomes harmless and you can remove it.

Modpacks? Yes, feel free to include it.

owo Network Fix Team

profile avatar
Owner
  • 1
    Followers
  • 27
    Projects
  • 12.4K
    Downloads

I make NeoForge 1.21.1 mods: server-side fixes for popular mods, clean HUDs, quality-of-life tools and Illama Raids, a full boss raid system. Lightweight, configurable, in English and French. Feedback welcome!

More from IllamaView all

  • Familiers – Pet Manager project image

    Familiers – Pet Manager

    Manage all your tamed animals and mounts from the Esc menu: teleport, store, hotkeys, homes, behaviors, Ice and Fire & Aether support.

    • 473
    • October 26, 2026
  • Compass HUD project image

    Compass HUD

    A compass bar above your hotbar showing cardinal directions and the heads of tracked players, with distance.

    • 220
    • October 21, 2026
  • Naturalist Lag Fix project image

    Naturalist Lag Fix

    Fixes a memory leak in Naturalist that slows down servers over time (whale & shark body parts).

    • 2.8K
    • October 21, 2026
  • Spawn & Homes project image

    Spawn & Homes

    An operator picks the exact server spawn, everyone gets a "Back to spawn" button in the pause menu, and each player can set up to 10 homes from a "My homes" screen — never during combat.

    • 23
    • October 17, 2026
  • Familiers – Pet Manager project image

    Familiers – Pet Manager

    Manage all your tamed animals and mounts from the Esc menu: teleport, store, hotkeys, homes, behaviors, Ice and Fire & Aether support.

    • 473
    • October 26, 2026
  • Compass HUD project image

    Compass HUD

    A compass bar above your hotbar showing cardinal directions and the heads of tracked players, with distance.

    • 220
    • October 21, 2026
  • Naturalist Lag Fix project image

    Naturalist Lag Fix

    Fixes a memory leak in Naturalist that slows down servers over time (whale & shark body parts).

    • 2.8K
    • October 21, 2026
  • Spawn & Homes project image

    Spawn & Homes

    An operator picks the exact server spawn, everyone gets a "Back to spawn" button in the pause menu, and each player can set up to 10 homes from a "My homes" screen — never during combat.

    • 23
    • October 17, 2026