This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Description
🐛 描述(Description)
我在测试本地构建的ShinColle过程中发现,使用mek调试指令发现 当世界时间固定且不更新时,舰船的报时语音【默认开启】在开启状态下,会循环播放
📷 复现步骤(Steps to Reproduce)
1.确认舰船的报时语音为开启状态
2.使用指令/gamerule doDaylightCycle false 禁用世界时间更新
3.使用指令/time set 1999 设置一个会播放 报时语音的的时间段
4.舰船开始每tick报时
📄 [异常/日志]信息([Exception/Log] Information)
无
🚑 基本信息(Basic Information)
- 程序版本或action构件日期(Program Version or Action component date):
- 系统(OS):
- 是否使用了其他mod(Are other mod used):
🖼 截图(Screenshots)
快速修复
在 if (!this.isMorph && ConfigHandler.timeKeeping && this.getStateFlag(ID.F.TimeKeeper) && this.isEntityAlive()) 添加判断 ,如果 doDaylightCycle 是false 则不工作
修改后的代码如下
if (!this.isMorph && ConfigHandler.timeKeeping && this.getStateFlag(ID.F.TimeKeeper) && this.isEntityAlive() && this.world.getGameRules().getBoolean("doDaylightCycle"))