Fix several issues for Giant Anvil 修复巨型铁砧的相关问题 #1441
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
giantAnvilMaxShockRadius
配置选项,用于控制巨型铁砧的震地范围上限。数值范围为4-16,默认设定为16。FallingGiantAnvilEntity#tick
方法中关于检测混凝土固化的部分。AnvilEventListener#brokeBlock
方法中用于获取精准采集掉落物的部分移动到了BreakBlockUtil
类中,供巨型铁砧的“精准破坏”震地行为复用。blockPos.relative(Axis.X, dx).relative(Axis.Z, dz)
的调用优化为blockPos.offset(dx, 0, dz)
,减少BlockPos
对象的重复创建。Block#asItem
调整为模拟精准采集破坏,修复了 [Bug] 铁砧震地的精准采集模式破坏粉色花瓣时只掉落1个 #1433 和 [Bug] 铁砧震地的精准采集模式会产生空物品 #1434。state.spawnAfterBreak()
调用的部分加入了精准采集工具作为参数,修复了 [Bug] 皇家铁砧破坏虫蚀方块生成蠹虫 #1436 。