Skip to content

Commit

Permalink
✅ maxChainUpdateThreshold -> maxChainUpdateDepth
Browse files Browse the repository at this point in the history
  • Loading branch information
1024-byteeeee committed Mar 8, 2025
1 parent 9414744 commit ba17c8f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/java/club/mcams/carpet/AmsServerSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ public class AmsServerSettings {
//$$ categories = {AMS, FEATURE, EXPERIMENTAL},
//$$ strict = false
//$$ )
//$$ public static int maxChainUpdateThreshold = -1;
//$$ public static int maxChainUpdateDepth = -1;
//#endif

/*
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/assets/carpetamsaddition/lang/en_us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,8 @@ carpetamsaddition:
desc: Let the bundle have a 9x3 or 9x6 UI, and right-click in the hand to open the UI
extra:
'0': 'This rule does not allow bundle and shulker boxes to be placed in bundle'
maxChainUpdateDepth:
desc: Modify max chain update depth, Set to "-1" to disable the rule

# 计划刻催熟规则:
scheduledRandomTickCactus:
Expand All @@ -530,8 +532,6 @@ carpetamsaddition:
desc: Make stems accepts scheduled tick as random tick
scheduledRandomTickAllPlants:
desc: Make all plants accepts scheduled tick as random tick
maxChainUpdateThreshold:
desc: Modify max chain update threshold, Set to "-1" to disable the rule

#区块加载规则
commandPlayerChunkLoadController:
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/assets/carpetamsaddition/lang/zh_cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -636,9 +636,9 @@ carpetamsaddition:
desc: 让收纳袋拥有一个9x3或9x6的UI,手持收纳袋右键即可打开UI
extra:
'0': '该规则不允许在收纳袋中放入收纳袋和潜影盒'
maxChainUpdateThreshold:
name: 最大链式更新阈值
desc: 修改链式更新,设置为“-1”禁用规则
maxChainUpdateDepth:
name: 最大链式更新深度
desc: 修改最大链式更新深度,设置为“-1”禁用规则

# 计划刻催熟规则:
scheduledRandomTickCactus:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ public abstract class ChainRestrictedNeighborUpdaterMixin {
)
)
private int modifyMaxChainDepth(int original) {
return AmsServerSettings.maxChainUpdateThreshold == -1 ? original : AmsServerSettings.maxChainUpdateThreshold;
return AmsServerSettings.maxChainUpdateDepth == -1 ? original : AmsServerSettings.maxChainUpdateDepth;
}
}

0 comments on commit ba17c8f

Please sign in to comment.