Fixed butterflies not being totally silent

This commit is contained in:
Sollace 2019-04-02 21:03:56 +02:00
parent 03059b6df2
commit 3a0685ae59

View file

@ -2,6 +2,8 @@ package com.minelittlepony.unicopia.entity;
import java.util.Random;
import javax.annotation.Nullable;
import com.minelittlepony.unicopia.Unicopia;
import net.minecraft.block.state.IBlockState;
@ -13,7 +15,9 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.network.datasync.DataParameter;
import net.minecraft.network.datasync.DataSerializers;
import net.minecraft.network.datasync.EntityDataManager;
import net.minecraft.util.DamageSource;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.SoundEvent;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.MathHelper;
import net.minecraft.world.World;
@ -40,6 +44,18 @@ public class EntityButterfly extends EntityAmbientCreature {
setResting(true);
}
@Nullable
@Override
protected SoundEvent getHurtSound(DamageSource damageSourceIn) {
return null;
}
@Nullable
@Override
protected SoundEvent getDeathSound() {
return null;
}
@Override
protected void applyEntityAttributes() {
super.applyEntityAttributes();