@@ -45,13 +45,13 @@ public void onNewPotionEffect(PotionEffect id)
4545 {
4646 if (id .getPotion ().isBadEffect ())
4747 {
48- ESSoundManager .playSoundWorld (ESSoundEvents .effect_add_negative , this . getPosition () );
49- ESSoundManager .playSoundWorld (ESSoundEvents .effect_add_negative , this . getPosition () );
48+ ESSoundManager .playSoundPlayer (ESSoundEvents .effect_add_negative );
49+ ESSoundManager .playSoundPlayer (ESSoundEvents .effect_add_negative );
5050 }
5151 else
5252 {
53- ESSoundManager .playSoundWorld (ESSoundEvents .effect_add_positive , this . getPosition () );
54- ESSoundManager .playSoundWorld (ESSoundEvents .effect_add_positive , this . getPosition () );
53+ ESSoundManager .playSoundPlayer (ESSoundEvents .effect_add_positive );
54+ ESSoundManager .playSoundPlayer (ESSoundEvents .effect_add_positive );
5555 }
5656 }
5757 }
@@ -64,13 +64,13 @@ public void onFinishedPotionEffect(PotionEffect effect)
6464 {
6565 if (effect .getPotion ().isBadEffect ())
6666 {
67- ESSoundManager .playSoundWorld (ESSoundEvents .effect_remove_negative , this . getPosition () );
68- ESSoundManager .playSoundWorld (ESSoundEvents .effect_remove_negative , this . getPosition () );
67+ ESSoundManager .playSoundPlayer (ESSoundEvents .effect_remove_negative );
68+ ESSoundManager .playSoundPlayer (ESSoundEvents .effect_remove_negative );
6969 }
7070 else
7171 {
72- ESSoundManager .playSoundWorld (ESSoundEvents .effect_remove_positive , this . getPosition () );
73- ESSoundManager .playSoundWorld (ESSoundEvents .effect_remove_positive , this . getPosition () );
72+ ESSoundManager .playSoundPlayer (ESSoundEvents .effect_remove_positive );
73+ ESSoundManager .playSoundPlayer (ESSoundEvents .effect_remove_positive );
7474 }
7575 }
7676 }
0 commit comments