CarryOnFix
Your Minecraft 1.21.1 NeoForge server was crashing every time a player used Carry On to pick up an entity or block
介绍
The crash: Your Minecraft 1.21.1 NeoForge server was crashing every time a player used Carry On to pick up an entity or block. The root cause was a NullPointerException inside StringTagVisitor.visitCompound(): Minecraft tried to sort the NBT keys of whatever was being carried, but one of those keys was null, causing Java’s TimSort to explode.
The fix: We built a small standalone NeoForge mod called CarryOnFix that uses a Mixin to intercept the Collections.sort() call, strip any null entries from the list, and then let the sort proceed normally. Two lines of actual logic.
Mod features:
- Server-side only — clients don’t need it installed, just drop the jar in the server’s
mods/folder - No extra dependencies
- Compatible with NeoForge 21.1.228 / Minecraft 1.21.1
Bumps along the way:
IExtensionPointandNetworkRegistryno longer exist in NeoForge 21.1 and caused a compile error — we removed them entirely, sincedisplayTest = "IGNORE_ALL_VERSION"inneoforge.mods.tomlis all you need to declare a server-side-only mod in modern NeoForge.
Turner_Time 的其他作品
查看全部 →Time Warp: The Temporal Enchantment
厌倦了因为苦力怕突然爆炸或一脚踩进虚空而失去所有进度?Time Warp 带来强大而颠覆性的附魔,让你能够倒转时间,获得第二次机会!
GravesCataclysmCompatibility
修复穿戴 Cursium 护甲套装时,墓碑模组与 Cataclysm 模组之间的兼容性问题。
Keep It
Keep your gear safe from death! Tired of losing your hard-earned diamond sword to a creeper? Enchant it with Keep It and never lose it again – it stays in your inventory every time you respawn!
评论
登录后评论和评分