DragonFightFix
一个简单的模组,用于修复在你退出游戏时末影龙正在上演其戏剧性登场动画的情况下,战斗可能卡住的问题。如果没有这个模组,你将被困在末地,唯一的出路就是跳入虚空。或者,如果你拥有足够的末影水晶,也可以重置水晶以重新启动该序列。
核心问题在于代码始终将 isRespawning 写入为 false。奇怪的是,下次恢复末地战斗时,它确实会尝试重置龙战,但由于该值始终为 false,因此从未真正执行。我通过以下方式解决了这个问题:如果龙处于重生状态,则保存正确的布尔值;同时添加了在龙战再次开始时重置尖刺水晶的代码,以便从头开始。否则,它们仍将留在那里。这样看起来更整洁。
最终结果(双关语)是,一旦你重新加入,龙会从最开始重新启动重生周期。理想情况下,如果我们能记住之前进行到的位置就更好了,但这需要保存大量状态数据,我认为对于这个小型修复来说有些过度设计。
DragonFightFix
A simple mod to fix the issue where the dragon fight can get stuck if you quit the game while the Ender Dragon is making
her dramatic entrance. Without this, you will get stuck in the end with no way out other than to jump into the void. Or
if you had enough end crystals, you could reset the crystals to restart the sequence.
The core issue is that the code simply always writes false for isRespawning. Strangely, when the end fight is restored
next time, it does try to reset the dragon fight, but since the value is always false, it never does. I fixed this by
now saving the proper boolean value if the dragon is respawning, and also added code to reset the spike crystals when
the dragon fight starts again to start with a clean slate. Otherwise, they'd still be sitting there. It looks cleaner
this way.
The end result (pun intended) is that the dragon restarts the respawn cycle from the start once you rejoin. Ideally it
would be great if we could just remember where we left off, but that's a bunch of state to save, and I thought it was
overkill for this small fix.
评论 0
登录后参与评分
还没有评论,来抢沙发吧