perf/tank-crops-lookups
main
Requested by Ethyn · project thread
Closes #20, closes #22
行为不变的机械改动:
TileTankBasic
TileOldReinforcedTank
connectionMeta(above, below)
TileTaintedCrops
Integer.class
🤖 Generated with Claude Code
Closes TDLM/thaumicadditions#20, closes TDLM/thaumicadditions#22 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
No dependencies set.
The note is not visible to the blocked user.
Requested by Ethyn · project thread
Closes #20, closes #22
行为不变的机械改动:
TileTankBasic与TileOldReinforcedTank每 tick 把上/下邻居各查一次,元数据由connectionMeta(above, below)一次算出(0 无邻、1 仅下、2 仅上、3 上下),只在不同时才写。原先四条 if 重复 16 次查询,其中 12 次冗余。TileTaintedCrops土壤方块和元数据各取一次;群系只在 tick 达到最低阈值 3550 之后才查;同时删掉从未生效的反射掉落代码(作物已被置空气,且反射签名用Integer.class永远匹配不到)。新增 3 个单元测试(四种邻居组合的元数据、两个阈值、成长计数边界),并加入 JUnit 依赖。编译与测试通过。
🤖 Generated with Claude Code