promotional bannermobile promotional banner

Butchery Bug Fixes

Non-invasive bug fixes, crash repairs, anti-dupe, O(1) event/tick optimizations, and datapack/model repairs for Butchery.

Butchery Bug Fixes

A non-invasive bug fix, anti-dupe, performance optimization, and asset/datapack repair addon for Butchery (5.3.1+). All fixes are applied at runtime via Mixins, datapacks, and a built-in client override resource pack without modifying the original mod jar.

Key Fixes & Optimizations

Critical Crashes & Dedicated Server Safety

  • Spit Rotisserie Right-Click Crash: Fixes ResourceLocationException caused by passing a /loot spawn command string as a function ID when harvesting cooked meat.
  • Dedicated Server Fluid Crash (NeoForge): Guards BloodFluidType and InfectedBloodFluidType client extensions on dedicated and hybrid servers (NoClassDefFoundError: ClientLevel).
  • GUI State Sync Crash (MenuStateUpdateMessage): Fixes guaranteed S2C NullPointerException, missing packet-handled flags, client-only class leakage on servers, and empty exception message crashes.
  • Empty-Tag JEI Recipe Sync Crash (NeoForge): Prevents ArrayIndexOutOfBoundsException kicking joining players when custom JEI recipes contain empty slots or unloaded optional mod tags.
  • Advancement Null Guards: Protects 26 advancement-granting procedures (including player login welcome messages) against NullPointerException when datapacks remove or alter advancements.
  • Deferred Work Queue & Setup Concurrency: Guards queueServerWork against null/negative delays, task exceptions, and cross-world leaks on server stop; synchronizes concurrent composter, fluid render layer, and network registrations.

Anti-Dupe, Item Loss & Grief Protection

  • Taxidermy Station Exploits: Moves output-slot ingredient consumption authoritatively to the server, validates menu binding/coordinates/distance on slot packets to block remote container wiping, and prevents hoppers from extracting output slot 3.
  • Additional Dupe Fixes: Fixes claim-protected block breaks dropping free carcasses, wooden spit rotisserie spontaneously spawning pigs on neighbor updates, pillager mask block duping, salt tip overwriting arbitrary blocks, skin rack state-19 duping, and hanging llama double-loot drops.
  • Tool Enchantment & NBT Preservation: Fixes all 24 butchery tools (cleavers, skinning knives, hacksaws, hammers) wiping enchantments, custom names, and NBT/components when used in crafting recipes, while respecting Unbreakable.
  • Preventing Item & Gear Destruction: Fixes Magic Wishbone outcome 16 deleting the player's chestplate, Withered Heart permanent softlock across relogs/restarts, Blood Grate turning stacked iron buckets into glass bottles, Meat Grinder eating glass bottles and yielding only 1 minced meat per carcass, balloon inflation/deflation consuming whole stacks, washing bloodied aprons wiping enchantments, and Wither Bonemeal destroying offhand tools.
  • Block & Container Safety: Protects unbreakable blocks (bedrock, portals) and tile-entity containers from Magic Wishbone traps, Dragon carcass landing, Elder Guardian drops, Salt Tip placement, and Taxidermy Table neighbor destruction.

Event Bus, Tick & Rendering Performance

  • O(1) Centralized Event Dispatcher: Unregisters 435 scattered global event listeners (RightClickBlock, LivingDeathEvent, BlockEvent.BreakEvent) and replaces them with server-only hash-table dispatchers:
    • Eliminates empty-hand right-click lag and client work-queue pollution;
    • Removes 235 unsuppressed /kill @e[type=item,...,distance=..20] commands that deleted nearby player drops, stripping only the dying mob's own vanilla meat/hide in LivingDropsEvent;
    • Stops cancelling LivingDeathEvent, restoring chested Llama inventory drops, XP orbs, and Raid progression;
    • Guards variant casts (Horse, Llama, Cat, etc.) with safe instanceof checks and restricts player tick advancement checks away from non-player entities (items/arrows/projectiles).
  • Block & Machine Tick Optimization: Eliminates 20–40 Hz idle chunk remeshing on Meat Grinders, Pestles, Basins, Skin Racks, Rotisseries, Plastic Sheets, and draining carcasses via configurable sync intervals; replaces brittle == timer checks with >= to prevent permanent softlocks.
  • Pseudo-Container Hopper Protection: Blocks hoppers from inserting and voiding items in 214–215 decorative/carcass block entities, caches slot arrays, fixes FluidTank null-level NPEs, and fixes capability invalidation.
  • Client Rendering & Caching: Caches baked models (and textures on NeoForge) for all 27 custom 3D armor pieces with automatic F3+T resource reload invalidation, short-circuits 8 HUD overlays before unnecessary GL state changes, adds null-level guards and expanded render bounding boxes for large carcass block entities, and fixes Pestle GUI progress rendering and Player Corpse skin cache cleanup.

Gameplay, Animal Outliers, Datapacks & Assets

  • 31+ Gameplay & Mob Fixes: Fixes 10 cat carcasses missing tick() never draining, Blue Axolotl reverting to undrained, Piglin Brute & Brown Horse unable to bleed, Piglins dropping Evoker carcasses, Drowned/Husk double-dropping carcasses, Pufferfish & Glow Squid drops, 7 wooden Butcher Displays misrouting to Acacia, Husk y-11 grate skip, Vindicator Mask noise helmet check, Instant Blood Grate filling Infected Blood instead of Blood, and 142 cutting procedures where Looting I always rolled 0.
  • Enchantment, Mining & Optional Mod Compatibility: Restores the Butcher's Touch enchantment by fixing the misplaced butchery:enchantable/weapon item tag; adds 178 missing mineable/* tags, iron_heads, c:tools/knife(s), heads, and 8 entity tags; adds mod-loaded conditions to optional Farmer's Delight and Patchouli recipes/tags; repairs the broken guide.json syntax and migrates stale plural loot tables (playercorpse drops) on NeoForge; fixes Hook standard loot table and Turtleshellboat entity drops.
  • Built-In Model & Localization Overrides: Mathematically bakes invalid -90° rotations in ravager_carcass.json, restores missing double-freezer textures (fixing purple/black blocks), fixes broken texture/particle paths (basin, cow_head, bone_barrel, rugs) and missing drainedplayercorpse variants, fixes 4 broken Patchouli recipe links, and adds full English and Simplified Chinese translations for containers and JEI categories.

Configuration

All major fix categories and the carcass/machine sync throttle interval (carcassTickSyncInterval) can be toggled in config/butcherybugfix-common.toml.

Source Code: https://github.com/hp3081925122/butchery-bug-fixes


屠宰工艺 Bug 修复(Butchery Bug Fixes)

针对 屠宰工艺(Butchery 5.3.1+) 的外部无侵入式 Bug 修复、防刷物、性能优化与数据包/模型资源修复附属模组。全部修复通过 Mixin、数据包与内置高优先级客户端覆盖资源包在运行时生效,不修改原模组 JAR。

核心修复与优化内容

严重崩溃与专用服安全修复

  • 烤肉架右键崩服:修复收获烤熟肉时将 /loot spawn 指令字符串误当作函数 ID 传入导致的 ResourceLocationException 崩服。
  • 专用服液体加载崩溃(NeoForge):为 BloodFluidType 与 InfectedBloodFluidType 客户端扩展补齐物理端侧守卫,解决专用服与混合端(Mohist/Youer 等)报 NoClassDefFoundError: ClientLevel 崩服。
  • GUI 状态同步崩溃(MenuStateUpdateMessage):修复服务端向客户端同步 GUI 状态时恒为空指针的 NullPointerException、漏标记已处理包、专用服裸引客户端类及空异常信息二次崩溃。
  • JEI 空标签网络同步踢服(NeoForge):修复自定义 JEI 配方在包含空槽位或未装可选模组空标签时抛出 ArrayIndexOutOfBoundsException 导致全员无法进服的问题。
  • 26 类进度空指针守卫:全面保护包括进服欢迎语在内的 26 个进度触发过程,防止整合包裁剪或修改进度时踢出玩家或打崩服务端。
  • 延迟队列与并发注册安全:保护 queueServerWork 免受空任务、负延迟、单任务异常和跨存档泄漏影响;同步堆肥、流体渲染层与网络频道并发注册。

防刷物、防吞物与破坏防护

  • 标本台刷物与远程清箱漏洞:将标本台成品槽原料扣除迁回服务端权威执行,严格校验槽位网络包的菜单绑定/坐标/距离封堵远程清空任意容器,并禁止漏斗抽取 3 号成品预览槽。
  • 其余刷物修复:封堵领地保护取消破坏时 0 成本刷尸体、烤肉架邻格更新凭空刷猪、掠夺者面具不删方块刷物、盐尖放置篡改任意方块、晾皮架状态 19 刷架以及悬挂羊驼双倍掉落。
  • 24 把屠宰工具合成保留附魔与 NBT:修复全部屠刀、剥皮刀、钢锯与重锤参与工作台合成时被重置为白板、清空全部附魔/改名/NBT 的缺陷,并正确尊重不可破坏属性。
  • 防删神装与防软锁:修复祈愿骨结局 16 清空胸甲槽销毁装备、凋灵心退服重启永久软锁、排血渠堆叠铁桶抽血整组变玻璃瓶、绞肉机做血肠吞玻璃瓶与单尸恒出 1 个肉末、气球吞整组、清洗血围裙清空附魔以及凋灵骨粉销毁副手工具。
  • 不可破坏方块与容器保护:防止祈愿骨陷阱、末影龙尸体落地、远古守卫者掉落、盐尖放置与标本台拆解覆盖基岩/传送门或摧毁相邻容器。

事件总线、TPS 与客户端渲染性能

  • O(1) 服务端集中事件分发器:统一接管并卸载原模组全部 435 个零散全局事件监听器(347 个方块右键 + 76 个生物死亡 + 12 个方块破坏),收口为哈希直达分发:
    • 彻底消除空手点击普通方块触发数百次冗余监听与客户端误入延迟队列;
    • 移除 40 个死亡流程中的 235 条 /kill @e[type=item,...,distance=..20] 指令,改在 LivingDropsEvent 中仅精确清理当前死亡生物自身的原版肉/皮,绝不再误删附近玩家掉落物;
    • 停止取消 LivingDeathEvent,恢复背箱羊驼箱内物资掉落、经验球与袭击进度;
    • 为全部变种实体强转补齐安全 instanceof 检查,并禁止玩家刻进度监听在非玩家实体(掉落物/箭矢/投射物)上空转。
  • 方块与机器刻节流:消除绞肉机、研钵、晒盐盆、晾皮架、烤肉架、塑料布与放血尸体每秒 20~40 次的空闲/高频区块重编译风暴,将 == 严等计时改为 >= 防止卡砖。
  • 伪容器防漏斗吞物:封堵 214~215 个伪容器方块实体被漏斗塞入物品直接吞噬的问题(NeoForge 端直接剥离其物品能力),缓存槽位数组,修复流体槽空世界 NPE 与能力失效回收。
  • 客户端渲染优化:缓存全部 27 件自定义 3D 盔甲烘焙模型(支持 F3+T 资源重载自动刷新),短路 8 个 HUD Overlay 空切 GL 状态,为全部方块实体渲染器补齐判空与大型尸体防视锥剔除包围盒,修复研钵界面进度显示错引与玩家尸体皮肤缓存泄漏。

玩法离群修复、数据包与模型资源覆写

  • 31+ 项玩法与动物离群修复:补齐 10 种缺 tick() 的猫尸体调度,修复蓝美西螈放满血错替回未放血、猪灵蛮兵/棕马无法放血、猪灵错掉唤魔者尸体、溺尸/尸壳双掉尸体、河豚与发光鱿鱼掉落、7 种木质展示柜错调金合欢无法拼接、尸壳 y-11 排血渠漏检、卫道士面具音效头盔判定错误、瞬时排血渠错灌感染血,以及 142 个切割过程抢夺 I 恒为 0 的缺陷。
  • 附魔、挖掘标签与可选联动兼容:补齐 butchery:enchantable/weapon 物品标签彻底恢复「屠夫之触」附魔;补齐 178 个缺失的 mineable/* 挖掘标签、iron_heads、c:tools/knife(s)、heads 及 8 个实体标签;为农夫乐事与帕秋莉可选联动配方与标签加上模组加载条件;修复损坏的 guide.json 语法、迁移滞留战利品表恢复玩家尸体掉落、恢复挂钩标准战利品表与海龟壳船掉落。
  • 内置高优先级模型与汉化覆盖包:数学无损烘焙 ravager_carcass.json 非法 -90° 旋转、补齐双联冷冻柜紫黑块贴图、修复 basin/cow_head/bone_barrel/兽皮地毯缺失贴图与粒子、修复 drainedplayercorpse 80 个断链变体、修复帕秋莉手册 4 处失效配方链接,并补齐容器与 JEI 分类的中英文双语翻译。

配置文件

全部核心修复模块开关及尸体/机器同步节流间隔(carcassTickSyncInterval)均可在 config/butcherybugfix-common.toml 中自由配置。

源码仓库:https://github.com/hp3081925122/butchery-bug-fixes

Butchery Bug Fixes Team

profile avatar
Owner
High Crafter tier icon
  • 24
    Followers
  • 121
    Projects
  • 1.1M
    Downloads

More from hp12138View all