Changed entity check for bards

This commit is contained in:
luisc committed 2024-05-14 18:05:25 -05:00
1 parent 2637d9de26
commit 2d9063cf24
2 files changed
+10 -2

No files matched your search

+1 -1
View File
@@ -95,7 +95,7 @@ public class JobBard extends JobInterface{
if(!MusicController.Instance.isPlaying()){
this.play();
}
else if(MusicController.Instance.sound.getEntity() != npc){
else if(MusicController.Instance.getEntity() != npc){
EntityPlayer player = CustomNpcs.proxy.getPlayer();
if(npc.getDistanceToEntity(player) < MusicController.Instance.sound.getDistance()){
MusicController.Instance.stopMusic();