commit
2749f79aba
1 changed files with 7 additions and 0 deletions
|
@ -29,6 +29,13 @@ public class EntityLivingHandler {
|
||||||
if (event.source.getDamageType().equals("player")) {
|
if (event.source.getDamageType().equals("player")) {
|
||||||
ItemDropHelper.dropMiniumShard((EntityPlayer) event.source.getSourceOfDamage(), event.entityLiving);
|
ItemDropHelper.dropMiniumShard((EntityPlayer) event.source.getSourceOfDamage(), event.entityLiving);
|
||||||
}
|
}
|
||||||
|
if (event.source.getSourceOfDamage() instanceof EntityArrow){
|
||||||
|
if (((EntityArrow) event.source.getSourceOfDamage()).shootingEntity != null){
|
||||||
|
if (((EntityArrow) event.source.getSourceOfDamage()).shootingEntity instanceof EntityPlayer){
|
||||||
|
ItemDropHelper.dropMiniumShard((EntityPlayer) event.source.getSourceOfDamage(), event.entityLiving);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue