promotional bannermobile promotional banner

Equipment Packet Fix

A simple 1.20.1 forge mod that fixes a weird itemstack encoding issue in ClientboundSetEquipmentPacket causing clients to be kicked.
kicked_by_server.webp

kicked_by_server.webp

Description

Equipment Packet Fix (1.20.1 Forge)

Mixes into CompoundTag to do two things:

  1. Avoid a ConcurrentModificationException in CompoundTag#write by converting the tag's key set into an array before iterating
  2. Avoid a EncoderException (caused by NullFointerException) in CompoundTag#writeNamedTag by adding a null safeguard

Config

detectExceptions - (default false) Try and log when exceptions might happen, logging the CompoundTag in question

Modpacks

Free to use in modpacks, but please do not redistribute.

Credits

Logo textures from Minecraft (armor) and Minecraft Dungeons (hammer). Disconnect screenshot from reddit

The Equipment Packet Fix Team

profile avatar
  • 1
    Followers
  • 2
    Projects
  • 1.7K
    Downloads

More from comfortableandy

  • Discord Stuff project image

    Discord Stuff

    • 999
    • Bukkit Plugins

    Discord Markdowns and Commands like /shrug in Minecraft!

    • 999
    • June 1, 2025
    • Bukkit Plugins
    • +1
  • Discord Stuff project image

    Discord Stuff

    • 999
    • Bukkit Plugins

    Discord Markdowns and Commands like /shrug in Minecraft!

    • 999
    • June 1, 2025
    • Bukkit Plugins
    • +1