HomeJavaModsEquipment Packet Fix
Equipment Packet Fix
ModsJava

Equipment Packet Fix

by comfortableandy · on CurseForge

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

⬇ Download on CurseForge

The author built this one for Minecraft 1.20.1 on Forge. On other versions it may install and then do nothing.

Equipment Packet Fix — screenshot 1

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

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more