The Deep Void Bug Fixes is a comprehensive bug-fix, stability, compatibility, and performance patch mod for The Deep Void (1.99.5).
Every fix is derived from a 100% class-by-class audit of all 3,118 classes, 2,695 datapack files, and 5,169 client assets in The Deep Void, combined with community issue verification — preserving vanilla gameplay and visual aesthetics while providing granular toggles in thedeepvoidbugfix-common.toml and thedeepvoidbugfix-client.toml.
Key Fixes & Optimizations
Core Stability, Thread Safety & Dedicated Server Fixes
- WorkQueue Hardening: Clamps
tick <= 0tasks to prevent permanent queue leaks (such asTombstonehit callbacks), replaces \(O(N \times M)\) removal with \(O(N)\) iteration, isolates per-task exceptions, and clears stale tasks on server stop. - Parallel Startup Thread Safety: Wraps
ComposterBlock.COMPOSTABLES,GameRules.register, andItemBlockRenderTypes.setRenderLayerregistrations safely to prevent random multi-mod startup crashes; suppresses the legacy duplicatenet.mcreatordimension registration. - Dedicated Server Crash Guards: Isolates client-only
Screen.hasShiftDown()/Minecraft.getInstance()references across 57 item tooltips,ItemTooltipEventhandlers,ItemAnimationFactory, andcheckGamemodeprocedures. - Variables, Advancements & FakePlayer Safety: Fixes
PlayerVariablesnull/non-CompoundTagcasts, client login NPEs,clonePlayercallingrevive()instead ofreviveCaps()/invalidateCaps(), FakePlayer null-channel packet crashes,PlayerAdvancements#getOrStartProgress(null)NPEs, and multi-dimensionHunterCooldown/SoulWings/DeadInsidepacket storms. - Cross-Dimension Transfers: Replaces broken manual
ClientboundGameEventPacket.WIN_GAMEdimension switches across all 7 active transfer procedures (fixes unintended End Poem popups and desyncs).
Exploits, Dupes, Containers & Networking
- Anti-Dupe & Packet Security: Hardens all 12 keybinding packets and 4 GUI packets with server-side direction, alive/non-spectator, open container type, and reach validation. Fixes cross-container arbitrary item duplication in Undertaker Trade GUI, client-side slot-trigger 0-cost duping in Soul Forge & Undertaker Trade GUIs, portable crafting table remote exploits,
MountFlymount duplication/theft,AncientPot&MistedHeartArmorStand dupes,GluttonBlockHopper/MimicItemStack.EMPTYsingleton corruption, andBismuthXP bottle level-conversion exploits. - Necrosed Skin Backpack: Fixes anvil-rename / NBT-change
readShareTagNPEs, fixesItemTossEventrunning client-only / cross-thread, locks container nesting (Shulker Boxes and containers), and enforces strictstillValidchecks.
Blocks, Map Colors, Modular Tools & Worldgen
- Map Visibility: Assigns appropriate
MapColorvalues to all 299 visible blocks that previously defaulted toMapColor.NONE(restoring visibility on vanilla maps and minimap mods). - Standard Tool Compatibility: Removes hardcoded
instanceof PickaxeItem/AxeItemchecks from 6 blocks and supplements standardmineable/*andneeds_*_tooltags so modular and modded tools work natively; restores all 3 brokenmineBlocktool effects (Bismuth Netherite Pickaxe/Hoebonus XP andGravedigger Shovelcorpse chaining). - Block & BlockEntity Hardening: Fixes missing
noOcclusion()on dungeon bars/spawners, missingnoCollission()on buttons/pressure plates/Blue Fire,Red Gateskylight propagation, idle scheduled tick /sendBlockUpdatedstorms, and secures all 14 BlockEntities (blocking hoppers from voiding items into decorativeSarcophagusblocks). - Worldgen & Structure Safety: Hardens
StructureFeature(Mirror.FRONT_BACK,get()instead ofgetOrCreate(),WorldGenRegion3×3 chunk bounding-box clamping), cleans 13 active structure NBTs, and clamps 6 oversizeddelta_featureconfigurations to eliminateDetected setBlock in a far chunkerrors.
Entities, Combat, Bosses & Effects
- Entity Tracking, Categories & Spawning: Normalizes all 190 entity tracking ranges (e.g., fixing 8,000-chunk tracking on
Idling Apostleand 1-chunk invisible skill entities), corrects 57 misclassifiedMobCategory.MONSTERnon-hostile/NPC/mount/effect entities, and fixes wild tamable monsters hogging the mob cap. - 54 Projectiles & AI: Fixes static
PROJECTILE_ITEMsingleton mutation on both sides, adds configurable projectile lifetime limits, fixes 108 constant-sizeGeoEntityper-tickrefreshDimensions()spam, allows/kill& void damage on 4 unkillable entities, and fixesBlackFly/SwarmerGoal NPEs andRangedAttackGoalpathing spikes. - Bosses, Effects & Combat: Fixes Soul Orb 8×8×8 shatter lag, Primordial Bone Crawler 0-damage & mid-air softlocks, Stalker server crashes,
VoidCloakpermanent Spectator/Creative privilege escalation,Vultureset infinite loops, damage reflectionStackOverflowError,Ichor Greatswordwrong-UUID permanent damage bonus,Knightfish-99negative hunger underflow, 7 weapons damaging targets instead of attackers inhurtEnemy,MobEffectearly-expiration triggers on renewal/milk,applyEffectTickConcurrentModificationExceptioninterruptions, double-displacement teleports, and dynamic random loop bounds. - Datapack & Loot Polish: Adds
looting_enchantto 48 entity loot tables, fixes 5 Better Combat weapon configs, and marks custom JEI recipesisSpecial() = trueto stop recipe-book log spam.
Client Rendering, Assets & Localization
- GeckoLib & Model Performance: Optimizes
EntityAnimationFactory,ItemAnimationFactory(eliminates 4× per-tick unconditionalItemStack.copy()), andArmorAnimationFactory(stops clearing third-party mod Geo armor animations); switches 112 opaque Geo renderers fromentityTranslucenttoentityCutoutNoCull(preserving truly translucent entities); fixes uppercase"Head"bone tracking on 7 GeoModels; caches 3D armor and 12MobRendererlayerbakeLayercalls. - HUD, Fog, Keys & Resources: Short-circuits GL state churn on 10 HUD overlays, clears static
providerleaks on all 15ViewportEventfog procedures & sky setup, guards all 12 keybindings against main-menu NPEs and movement-key packet storms, fixesForgetful Fogclient string-concatenation OOM, streams 5 oversized music tracks, overrides 4 unreferenced malformed custom models, and localizes hardcoded English JEI/GUI/item tooltips alongside filling 162 blankzh_cn.jsontranslations.
Source Code: https://github.com/hp3081925122/the-deep-void-bug-fixes
The Deep Void Bug Fixes(深渊虚空漏洞修复) 是面向 The Deep Void(深渊虚空 1.99.5) 的专项漏洞修复、兼容性加固与性能优化补丁模组。
全部修复均基于对原模组全部 3,118 个类、2,695 份数据包文件与 5,169 份客户端资源的 100% 深度审计及多平台社区问题核实,在完整保留原模组玩法与视觉表现的前提下修复关键缺陷,并可通过 thedeepvoidbugfix-common.toml 与 thedeepvoidbugfix-client.toml 按模块独立开关。
核心修复与优化内容
核心稳定性、线程安全与专用服务端修复
- 延迟队列加固:对
workQueue传入tick <= 0的任务做下限钳位(消除墓碑等连击导致的永久队列泄漏),改为 \(O(N)\) 迭代、单任务异常隔离,并在停服/切档时自动清空。 - 启动并发安全:将
ComposterBlock.COMPOSTABLES、GameRules.register与ItemBlockRenderTypes.setRenderLayer的并发裸写安全入队/加锁,消除多模组同装随机启动崩溃;屏蔽旧net.mcreator包残留的重复维度注册。 - 物理专服崩服防护:隔离 57 个物品 Tooltip、
ItemTooltipEvent、ItemAnimationFactory与checkGamemode对Screen/Minecraft.getInstance()的客户端直引。 - 网络变量、进度与假玩家兼容:修复
PlayerVariables空 NBT 强转、客户端进服竞态 NPE、clonePlayer误调revive()、假玩家空Channel发包 NPE、PlayerAdvancements#getOrStartProgress(null)空指针,以及多维度HunterCooldown、SoulWings与DeadInside发包风暴。 - 跨维度传送修复:替换全部 7 个活跃切维过程中的错误
WIN_GAME发包,彻底消除跨维触发终末之诗与状态错位。
刷物漏洞、容器与网络包安全
- 防刷物与越权拦截:为全部 12 个按键包与 4 个 GUI 包补齐服务端方向、存活/非旁观、当前打开容器类型与交互距离校验;堵死入殓师跨容器复制任意物品、灵魂熔炉/入殓师
onTake客户端包时序 0 成本无限刷物、远程白嫖随身工作台、MountFly复制/抢夺坐骑、古罐与拟态之心盔甲架刷物、饕餮方块/拟态怪污染ItemStack.EMPTY全局单例及铋经验瓶刷经验漏洞。 - 坏死皮背包加固:修复铁砧重命名/附魔后
readShareTag空指针崩溃、修复ItemTossEvent错标客户端与跨线程操作 UI、补齐底层潜影盒/容器防嵌套拦截与严格stillValid校验。
方块、地图可见性、模块化工具与世界生成
- 地图色补全:为原模组全部 299 个缺失
MapColor的可见方块补齐语义地图色,恢复原版地图与小地图显示。 - 原版标准挖掘兼容:移除 6 个方块
canHarvestBlock硬编码instanceof PickaxeItem/AxeItem判定并补齐mineable/*、needs_*_tool标签,原生兼容各类模块化/第三方工具;救活全部 3 个因mineBlock读空气而失效的工具(铋下界合金镐/锄额外经验、掘墓人铲子连锁挖掘)。 - 方块与方块实体加固:补齐栏杆/刷怪笼
noOcclusion()、按钮/压力板/蓝火无碰撞、红门透光,收敛计划刻与sendBlockUpdated风暴;加固全部 14 个方块实体(阻断漏斗向深板岩石棺等装饰伪容器吞物)。 - 世界生成与结构安全:修复
StructureFeature四重模板缺陷(含 3×3WorldGenRegion裁剪),清洗 13 个活跃结构 NBT,收敛 6 个超半径delta_feature配置,消除远区块setBlock报错。
生物实体、战斗、Boss 与药水效果
- 实体追踪、分类与刷怪池:收敛全部 190 个实体追踪半径(如修复使徒 8000 区块追踪与 14 个 1 区块隐身技能实体),修正 57 处非敌对/NPC/坐骑/特效误标
MobCategory.MONSTER的分类错误,修复野生可驯服怪永久占用刷怪池。 - 54 种弹射物与 AI 优化:双端修复静态
PROJECTILE_ITEM单例篡改、新增可配置最大存活刻数上限、消除 108 个恒定体型GeoEntity每 tickrefreshDimensions()刷屏、放行 4 种实体对/kill与虚空的免疫,并修复BlackFly/Swarmer寻路 NPE 与RangedAttackGoal寻路尖峰。 - Boss、药水与战斗逻辑:修复灵魂织者球 8×8×8 碎裂卡服、原始骨爬虫 0 伤与空中软锁、潜行者服务端崩溃、虚空斗篷永久旁观/创造提权、秃鹫套死循环、反伤递归爆栈、圣血大剑错 UUID 永久白嫖攻击力、骑士鱼
-99负饥饿值下溢、7 把近战武器错扣目标耐久、8 个药水续期/喝牛奶提前引爆、药水 tick 直接removeEffect引发CME中断其余药水结算、双倍位移传送及循环动态随机上限失真。 - 数据包与战利品完善:为 48 张实体战利品表补齐
looting_enchant,修复 5 份 Better Combat 武器配置,为自定义 JEI 配方覆写isSpecial() = true消除进服刷屏。
客户端渲染、资源与本地化
- GeckoLib 与模型缓存:全面优化 3 个动画工厂(消除每 tick 4 次无条件
ItemStack.copy()与清空第三方模组 Geo 盔甲动画);将 112 个不透明 Geo 渲染器由entityTranslucent切回entityCutoutNoCull(保留真实半透明生物);修复 7 个 GeoModel 小写"head"骨骼导致头部不转向;为 3D 盔甲与 12 个实体渲染层(14 处)缓存bakeLayer。 - HUD、雾效、按键与覆盖资源包:短路 10 个 HUD 覆盖层空闲 GL 状态切换、修复 15 个雾效与天空事件静态
provider内存泄漏、为 12 个按键补齐主菜单判空与移动键发包门控、修复遗忘之雾客户端拼接 OOM;通过高优先级内置资源包流式化 5 首超大背景音乐、修复 4 处未引用畸形自定义模型报错、本地化硬编码英文提示并补齐 162 条空白中文译文。
源码仓库:https://github.com/hp3081925122/the-deep-void-bug-fixes

