Tags
Creators
Details
2.0.1-fix
Compatibility
Required content
Changes
版本 2.0.1-fix | Version 2.0.1-fix
缺陷修复 | Bug Fixes
[修复] 服务器崩溃 — 工业定义加载器递归更新
[Fix] Server Crash — Recursive Update in Industrial Definition Loader
- 中文: 修复了在服务端 tick 过程中,
IndustrialDefinitionLoader因在ConcurrentHashMap.computeIfAbsent的映射函数内部递归修改同一缓存,触发IllegalStateException: Recursive update导致游戏崩溃的问题。 - English: Fixed a crash where
IndustrialDefinitionLoadertriggeredIllegalStateException: Recursive updateduring server tick, caused by a recursive modification of the sameConcurrentHashMapinside acomputeIfAbsentmapping function.
[修复] 经济系统 — 服务器挂机导致离线收益堆积
[Fix] Economy — Offline Income Accumulation on Idle Server
- 中文: 修复了服务器空置运行时租金与企业税持续结算的问题。现在每个城市仅在其市长或官员在线时才会触发当日收入结算;若无官员在线,当天跳过结算,不会在下次登录时补发离线期间的所有积累收益。
- English: Fixed an issue where residential rent and enterprise taxes continued to accumulate while no players were online. Income settlement for each city now only triggers when at least one mayor or official of that city is online. Days without an online official are skipped entirely and will not be retroactively paid out upon login.
[修复] 经济系统 — 企业税始终显示为 0.00
[Fix] Economy — Enterprise Tax Always Displayed as 0.00
- 中文: 修复了玩家通过商业楼进行货币购买时,营业收入未被记录至数据库的问题。此前仅 NPC 自动交易会写入收入记录,玩家手动购买的营业额从未参与企业税计算,导致企业税恒为 0。现在玩家完成货币交易后,商业收入将正确写入,并在下一日结算时按 25% 税率征收企业税。
- English: Fixed an issue where commercial income from player-initiated purchases was never recorded in the database. Previously, only NPC-automated trades wrote income records; all player purchases were silently excluded from enterprise tax calculation, resulting in a perpetual 0.00 tax display. Commercial income is now correctly recorded on player purchase, and the 25% enterprise tax will be applied at the next daily settlement.
[修复] 农田系统 — NPC 农民破坏含水方块
[Fix] Farmland — NPC Farmer Destroying Waterlogged Blocks
- 中文: 修复了农田盒水槽位置放置含水方块(如含水台阶、含水石板等)时,NPC 农民会将其误判为"缺水"并将其挖除、替换为水方块的问题。现在系统对含水方块与水方块同等对待,NPC 不再干预玩家手动设置的含水方块。
- English: Fixed an issue where placing a waterlogged block (e.g. waterlogged slab) in a farmland water trough slot caused NPC farmers to misidentify it as a missing water source, dig it up, and replace it with a plain water block. Waterlogged blocks are now treated equivalently to water blocks; NPC farmers will no longer interfere with player-placed waterlogged blocks in trough positions.
[修复] 建筑系统 — 控制箱被摧毁后建筑数据未清除
[Fix] Building System — Building Data Not Cleared on Control Box Destruction
- 中文: 修复了工业控制箱、商业控制箱或建筑箱被破坏后,对应建筑的结构数据(PlacedBuildingRecord)未从数据库中删除的问题。现在破坏任意控制箱时,系统会在解雇绑定 NPC 并清理运行时状态后,自动删除该建筑的结构记录,使该位置可以重新建造。
- English: Fixed an issue where destroying an industrial control box, commercial control box, or build box left the associated building's structural data (PlacedBuildingRecord) intact in the database. The building record is now automatically removed when any control box is destroyed, after the assigned NPC is dismissed and runtime state is cleaned up, allowing the site to be rebuilt.
新功能 | New Features
[新增] 雇佣界面 — 排序、搜索与收藏
[Feature] Hire Screen — Sorting, Search, and Favorites
- 中文: 雇佣界面新增与建筑选择列表一致的工具栏,支持:按名字(首字母)或等级排序(升序/降序可切换);仅显示收藏 NPC;收藏状态持久化保存;一键重置所有筛选条件。每张 NPC 卡片右上角新增收藏按钮(★/☆)。
- English: The hire screen now features a toolbar matching the building list, with: sorting by name (alphabetical) or level (ascending/descending toggle); a favorites-only filter; persistent favorite storage; and a one-click reset. A favorite button (★/☆) has been added to the top-right corner of each NPC card.
Supplementary resources
| File | Type | Size | |
|---|---|---|---|
| [en_us]official_building.zip | Unknown | 838.79 KiB |
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:70LWU0bA:t9TKii2o"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:70LWU0bA:t9TKii2o"
}

