Skip to content

Commit

Permalink
取消伪装时也播放音效
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Sep 17, 2024
1 parent a3cf2dd commit 05606b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/xiamomc/morph/MorphManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -1286,8 +1286,17 @@ public void unMorph(@Nullable CommandSender source, Player player, boolean bypas

// 如果玩家在线,则生成粒子
if (player.isConnected())
{
spawnParticle(player, player.getLocation(), player.getWidth(), player.getHeight(), player.getWidth());

player.getWorld().playSound(
player.getLocation(),
Sound.UI_LOOM_TAKE_RESULT,
SoundCategory.PLAYERS,
1, 1
);
}

// 从disguiseStates里移除此状态
disguiseStates.remove(state);

Expand Down

0 comments on commit 05606b6

Please sign in to comment.