
Fixed an issue where the client would crash when you died by the Sacrificial Knife when on a server.
25 lines
660 B
Java
25 lines
660 B
Java
package wayoftime.bloodmagic.util;
|
|
|
|
import net.minecraft.entity.LivingEntity;
|
|
import net.minecraft.util.DamageSource;
|
|
import net.minecraft.util.text.ITextComponent;
|
|
import net.minecraft.util.text.TranslationTextComponent;
|
|
|
|
public class DamageSourceBloodMagic extends DamageSource
|
|
{
|
|
public static final DamageSourceBloodMagic INSTANCE = new DamageSourceBloodMagic();
|
|
|
|
public DamageSourceBloodMagic()
|
|
{
|
|
super("bloodMagic");
|
|
|
|
setDamageBypassesArmor();
|
|
setDamageIsAbsolute();
|
|
}
|
|
|
|
@Override
|
|
public ITextComponent getDeathMessage(LivingEntity livingBase)
|
|
{
|
|
return new TranslationTextComponent("chat.bloodmagic.damageSource", livingBase.getName());
|
|
}
|
|
} |