Universal Tweaks

Universal Tweaks

2M Downloads

Endlessly trigger ding sound while dead

WaitingIdly opened this issue ยท 0 comments

commented

reproduction steps:

  1. enable load sounds
  2. enter world and hear ding noise
  3. run /kill
  4. observe the ding noise being played repeatedly until clicking Respawn

perhaps changing the event from EntityJoinWorldEvent to PlayerLoggedInEvent would resolve this?

relevant code:

public static void utWorldSound(EntityJoinWorldEvent event)
{
if (event.getEntity() instanceof EntityPlayerSP)
{
if (UTConfig.TWEAKS_MISC.LOAD_SOUNDS.utLoadSoundMode == WORLD || UTConfig.TWEAKS_MISC.LOAD_SOUNDS.utLoadSoundMode == MINECRAFT_AND_WORLD) playRandomSoundWorld();
}
}