Merge pull request #263 from aginsun/patch-1

Letting arrow death work
This commit is contained in:
pahimar 2013-03-17 15:25:15 -07:00
commit 2749f79aba

View file

@ -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);
}
}
}
} }
} }