diff --git a/src/main/java/mchorse/metamorph/api/morphs/EntityMorph.java b/src/main/java/mchorse/metamorph/api/morphs/EntityMorph.java index 1285ae40..19455d2b 100644 --- a/src/main/java/mchorse/metamorph/api/morphs/EntityMorph.java +++ b/src/main/java/mchorse/metamorph/api/morphs/EntityMorph.java @@ -782,8 +782,8 @@ public SoundEvent getHurtSound(EntityLivingBase target, DamageSource damageSourc try { - Method methodHurtSound = InvokeUtil.getPrivateMethod(entity.getClass(), EntityLivingBase.class, SoundHandler.GET_HURT_SOUND.getName()); - SoundEvent hurtSound = (SoundEvent) methodHurtSound.invoke(entity); + Method methodHurtSound = InvokeUtil.getPrivateMethod(entity.getClass(), EntityLivingBase.class, SoundHandler.GET_HURT_SOUND.getName(), DamageSource.class); + SoundEvent hurtSound = (SoundEvent) methodHurtSound.invoke(entity, damageSource); if (hurtSound == null) { hurtSound = SoundHandler.NO_SOUND;