This commit is contained in:
tterrag1098 committed 2015-06-24 02:47:38 -04:00
1 parent ed0828871c
commit 8bce03348c
1 file changed
+1 -1
@@ -45,7 +45,7 @@ public class XPBoostHandler
{
scheduleXP(entity, getXPBoost(entity, (EntityPlayer) killer));
}
else if (killer instanceof EntityArrow)
else if (killer instanceof EntityArrow && ((EntityArrow) killer).shootingEntity instanceof EntityPlayer)
{
NBTTagCompound tag = killer.getEntityData();
if (tag.hasKey(NBT_KEY) && tag.getInteger(NBT_KEY) >= 0)