MowziesMobs icon indicating copy to clipboard operation
MowziesMobs copied to clipboard

Hostile mobs use the 'Friendly Creatures' sound source

Open Chumbanotz opened this issue 2 years ago • 0 comments

The sounds of hostile Mowzie's mobs are controlled by the 'Friendly Creatures' sound slider instead of the 'Hostile Creatures' slider. The simplest solution is to override the getSoundCategory method in MowzieEntity like so:

	public SoundCategory getSoundCategory() {
		return this instanceof IMob ? SoundCategory.HOSTILE : SoundCategory.NEUTRAL;
	}

In 1.17:

	public SoundSource getSoundSource() {
		return this instanceof Enemy ? SoundSource.HOSTILE : SoundSource.NEUTRAL;
	}

Chumbanotz avatar Jun 01 '22 21:06 Chumbanotz