Blood Letter's Pack + Coat of Arms
This commit is contained in:
parent
4b7ad55016
commit
9a6d8d6d60
13 changed files with 317 additions and 21 deletions
|
@ -192,10 +192,8 @@ public class NetworkHelper {
|
|||
|
||||
public static void hurtPlayer(EntityPlayer user, float damage) {
|
||||
if (!user.capabilities.isCreativeMode) {
|
||||
user.attackEntityFrom(BloodMagicAPI.getDamageSource(), 0F);
|
||||
user.setHealth((user.getHealth() - damage));
|
||||
|
||||
if (user.getHealth() <= 0.0005f)
|
||||
user.onDeath(BloodMagicAPI.getDamageSource());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue