Skip to content

Commit

Permalink
v1.8.4 音效
Browse files Browse the repository at this point in the history
  • Loading branch information
SoBadFish committed Sep 20, 2022
1 parent 75016c8 commit c139e4f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/main/java/org/sobadfish/bedwar/player/PlayerInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public void addSound(Sound sound){
if(cancel || isLeave){
return;
}
addSound(sound,1.0f,1.0f);
addSound(sound,1f,1f);
}
/**
* 发送音效
Expand All @@ -334,8 +334,18 @@ public void addSound(Sound sound,float v1,float v2){
if(cancel || isLeave){
return;
}
getPlayer().getLevel().addSound(getPlayer(),sound,v1,v2,(Player) getPlayer());
getPlayer().getLevel().addSound(getPlayer(),sound,v1,v2,(Player)getPlayer());
}
/**
* 发送音效
* */
public void addSound(cn.nukkit.level.sound.Sound sound){
if(cancel || isLeave){
return;
}
getPlayer().getLevel().addSound(sound,(Player) getPlayer());
}


/**
* 增加效果
Expand Down

0 comments on commit c139e4f

Please sign in to comment.