Skip to content

Commit

Permalink
misc: 更新配置
Browse files Browse the repository at this point in the history
misc: 一些调整
  • Loading branch information
MATRIX-feather committed Dec 9, 2023
1 parent 2198dee commit d8f33ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/xiamomc/morph/config/MorphConfigManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public void reload()
});

//更新配置
int targetVersion = 27;
int targetVersion = 28;

var configVersion = getOrDefault(Integer.class, ConfigOption.VERSION);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,8 @@ public void onPlayerSwing(PlayerArmSwingEvent e)
if (!playerInDistance || simStack.contains(targetPlayer)) return;

//若源玩家正在丢出物品,不要处理
//若源玩家没有在破坏方块,不要处理
//检查玩家在此tick内是否存在互动以避免重复镜像
if (tracker.droppingItemThisTick(player)
|| !tracker.isBreakingSuspect(player)
|| tracker.interactingThisTick(player))
{
return;
Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ root:
# Add a minimal consumption limit (20% of the configured consumption speed) as an "Idle consumption" for players per tick.
idle_consumption: true

# Disable Fly Ability in the following worlds
nofly_worlds: []

# Ambient sound options
ambient_sounds:
# The frequency for this plugin to play ambient sounds for disguises.
Expand Down Expand Up @@ -243,4 +246,4 @@ root:
client_renderer: true

# Do not touch unless you know what you're doing!
version: 27
version: 28

0 comments on commit d8f33ab

Please sign in to comment.