Skip to content

[BUG]The spread of evil/sacred factions cannot be halted by the "AllowCorruption/Crimson/HallowCreep" settings in config.json. #3303

Description

@star620

现象:即使在config.json中 修改:"AllowCrimsonCreep""AllowCorruptionCreep""AllowHallowCreep"为false
邪恶/神圣仍会通过 hardUpdateWorld→WorldGen.Convert 批量扩散

根因:TShock 仅挂 SpreadGrass(慢路径)和 GameHardmodeTileUpdate(该事件只被已废弃的 mfwh_hardUpdateWorld 触发),未拦截真正的主扩散入口 hardUpdateWorld。

我认为的修复方案:TSAPI 新增绑定 hardUpdateWorld 的 WorldHardUpdateWorld 钩子,TShock 挂接后在 OnCreep 按已转化目标类型(TileID.Sets.Corrupt/Crimson/Hallow)判定拦截。该方案我已在本地构建成功并测试,原有的未能拦截的问题已修复

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions