adddi-1.2.3.jar
Curse Maven Snippet
What's new
Adddi 1.2.3 Update Notes
Key Highlights: Sodium + Nested Portals — Now Both Supported
In version 1.2.1, nested portals were downgraded to "block-style" portals when using Sodium; in 1.2.2, the nesting depth for Immersive Portals (IP) was capped at 1. Both approaches came at the cost of the visual quality of nested portals. Version 1.2.3 addresses the root cause, allowing both nested portals and Sodium to function together.
Root Cause
- Immersive Portals uses
Helper.arrayListComputeIfAbsent(list, index, supplier)to cache "portal layer batches" for each rendering area. - The implementation of this method fills the list with
nullvalues up to the specified index before populating the target index itself. Consequently, when a chunk appears in a nested layer (index ≥ 1) for the first time, the preceding slots are left asnull. - The Sodium compatibility layer for Immersive Portals subsequently iterates over these areas (via
ip_onUpdateorip_onDelete) usingbatches.values(). Encountering anullvalue triggers aNullPointerException, causing the client to crash.
Fix
- A new compatibility Mixin has been added: it intercepts the execution of
Helper.arrayListComputeIfAbsentand ensures that any gaps in the list are filled with the actual objects generated bysupplier.get(). This guarantees that the cached list remains dense, with nonullentries. - This Mixin is applied only when
immersive_portalsis detected (controlled byAdddiMixinPlugin). It usesrequire = 0, allowing the injection to be skipped safely if it fails, ensuring the game can still launch. - The
maxPortalLayer = 1restriction introduced in 1.2.2 has been removed;IPGlobal.maxPortalLayeris restored to its default Immersive Portals value, allowing nested portals to render correctly. - Furthermore, the forced use of "block-style" portals when using Sodium has been removed; Immersive Portals will now be created as intended. ## Compatibility
- Tested with Immersive Portals 6.0.7 + Sodium 0.8.14 + Minecraft 1.21.11: Supports see-through portals and nested portals (portals within portals).
- This fix is enabled only when Immersive Portals (IP) is present; the mod will launch as usual if IP is absent (as the dimension functionality inherently relies on IP’s DimLib).
Files
- Version:
1.2.3 - JAR file:
adddi-1.2.3.jar - Required mod:
Immersive Portals - Installation: Place the file in your
.minecraft/modsfolder and delete the oldadddi-1.2.2.jar.
Adddi 1.2.3 更新说明
本次重点:Sodium + 门中门,两者都要
1.2.1 在 Sodium 下退化成方块传送门;1.2.2 (一个未提交的版本) 把 IP 的嵌套层数限制为 1。两种做法都会牺牲「门中门」的画面。 1.2.3 改为修复真正的根因,嵌套透视与 Sodium 可以同时保留。
根因
- Immersive Portals 用
Helper.arrayListComputeIfAbsent(list, index, supplier)缓存每个渲染区域的「传送门层级批次」。 - 该方法的实现会先用
null填满到指定下标,再只填充该下标。因此当某个区块第一次出现在嵌套层(index ≥ 1)时,更低的槽位会留下null。 - IP 的 Sodium 兼容层随后在这些区域上执行
batches.values()(ip_onUpdate/ip_onDelete),命中null就抛出NullPointerException,导致客户端崩溃。
修复方式
- 新增兼容 Mixin:在
Helper.arrayListComputeIfAbsent头部接管实现,把每个空缺层直接填成supplier.get()的真实对象,保证缓存列表始终稠密、无null。 - 该 Mixin 仅在检测到
immersive_portals时应用(AdddiMixinPlugin门控),并通过require = 0允许注入失败时安全跳过,不会影响启动。 - 同时移除了 1.2.2 的
maxPortalLayer = 1限制,IPGlobal.maxPortalLayer恢复为 IP 默认值,门中门可以正常渲染。 - 也不再在 Sodium 下强制使用方块传送门,IP 传送门照常创建。
兼容性
- Immersive Portals 6.0.7 + Sodium 0.8.14 + Minecraft 1.21.11 下测试目标:可透视、可门中门。
- 仅当 IP 存在时启用此修复;没有 IP 时模组照常启动(维度功能本来也依赖 IP 的 DimLib)。
文件
- 版本号:
1.2.3 - jar:
adddi-1.2.3.jar - 前置模组:
Immersive portals - 安装:放入
.minecraft/mods。
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include