Iron's Spells 与 Sable 兼容补丁
在 Iron's Spells 'n Spellbooks 或 Sable 官方集成 Sable Companion 支持之前,作为兼容性补丁使用。
修复了除传送门框架外的所有法术。它们不会崩溃,但如果物理效果被切换,会导致断开连接;并且仅能用于进入这些机械装置,无法从上面离开。
测试版本
模组 版本
Iron's Spells 'n Spellbooks 3.15.6
Sable 1.2.2
⚠️ 请勿自动更新 Iron's 或 Sable。此模组使用了针对特定内部方法的 Mixins。如果任一模组更改了其内部结构,Mixins 可能无法应用、目标定位可能失效,或者导致服务器启动时崩溃。
脆弱性假设
本模组基于以下假设:
Sable Companion API(`SableCompanion.INSTANCE.projectOutOfSubLevel`、`getContaining`、`SubLevelAccess.logicalPose()`)存在且行为如文档所述
Iron's Spells 的内部结构(`Utils.handleSpellTeleport`、`Utils.hasLineOfSight`、`PortalSpell.handleEntityPortal`、`PortalEntity.lambda$checkForEntitiesToTeleport$1`、`PortalFrameBlockEntity.serverTick`、`TouchDigSpell.onCast`、`RaycastBuilder.performRaycast`、`ShadowSlashSpell.onCast`)在方法签名层面保持稳定
Mixin 目标(方法名、参数类型、调用目标)保持不变
如果任一模组进行激进更新:
❌ Mixins 可能无法应用(启动时崩溃)
❌ 方法定位可能失效(静默异常行为)
❌ 服务器启动可能因 `MixinApplyError` 而崩溃
免责声明
由 AI 辅助生成(Claude, Anthropic)
未与 iron431 (Iron's Spells) 或 ryanhcode (Sable) 建立关联
一旦 Iron's Spells 或 Sable 发布官方修复,本模组将变得多余
Iron's Spells x Sable Compat
compatibility patch until Iron's Spells 'n Spellbooks or Sable officially
integrates Sable Companion support.
Fixes all spells exept portal frames, they don't crash but disconnect if the physics are toggled, and only work to get in the contraptions not off them.
Tested Versions
Mod Version
Iron's Spells 'n Spellbooks 3.15.6
Sable 1.2.2
⚠️ Do NOT auto-update Iron's or Sable. This mod uses Mixins that target
specific internal methods. If either mod changes its internals, mixins may
fail to apply, targeting may break, or server startup may crash.
Fragility Assumptions
This mod assumes:
Sable Companion APIs (`SableCompanion.INSTANCE.projectOutOfSubLevel`, `getContaining`, `SubLevelAccess.logicalPose()`) exist and behave as documented
Iron's Spells internals (`Utils.handleSpellTeleport`, `Utils.hasLineOfSight`, `PortalSpell.handleEntityPortal`, `PortalEntity.lambda$checkForEntitiesToTeleport$1`, `PortalFrameBlockEntity.serverTick`, `TouchDigSpell.onCast`, `RaycastBuilder.performRaycast`, `ShadowSlashSpell.onCast`) remain stable at the method-signature level
Mixin targets (method names, parameter types, invoke targets) remain unchanged
If either mod updates aggressively:
❌ Mixins may fail to apply (crash at startup)
❌ Method targeting may break (silent misbehavior)
❌ Server startup may crash with `MixinApplyError`
Disclaimer
Generated with AI assistance (Claude, Anthropic)
Not affiliated with iron431 (Iron's Spells) or ryanhcode (Sable)
This mod will become obsolete once Iron's Spells or Sable ships an official fix
评论 0
登录后参与评分
还没有评论,来抢沙发吧