Skip to content

Commit

Permalink
Merge branch '1.20.4' into 1.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Feb 6, 2024
2 parents 75dd8e0 + c6d8852 commit 8e63783
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/xiamomc/morph/MorphManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,13 @@ private DisguiseState postConstructDisguise(Player player, @Nullable Entity targ

spawnParticle(player, player.getLocation(), cX, cY, cZ);

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

// 确保玩家可以根据设置看到自己的伪装
state.setServerSideSelfVisible(playerMorphConfig.showDisguiseToSelf && !this.clientViewAvailable(player));

Expand Down

0 comments on commit 8e63783

Please sign in to comment.