Fix squelch sound not playing for the slime spell

This commit is contained in:
Electroblob77
2020-06-13 17:24:41 +01:00
parent 9dbdd2b830
commit 57e96458d5
2 changed files with 7 additions and 1 deletions
@@ -13,6 +13,7 @@ import net.minecraft.entity.monster.EntitySlime;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumParticleTypes;
import net.minecraft.util.SoundEvent;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import net.minecraft.util.text.TextComponentTranslation;
@@ -25,6 +26,11 @@ public class Slime extends SpellRay {
addProperties(DURATION);
}
@Override
protected SoundEvent[] createSounds(){
return this.createSoundsWithSuffixes("shoot", "squelch");
}
@Override
protected boolean onEntityHit(World world, Entity target, Vec3d hit, EntityLivingBase caster, Vec3d origin, int ticksInUse, SpellModifiers modifiers){